Upload starts automatically when Javascript is enabled
This commit is contained in:
parent
52590d866e
commit
4ee670e438
2 changed files with 10 additions and 6 deletions
|
|
@ -21,11 +21,14 @@
|
|||
- else
|
||||
' There are no screenshots yet for #{@package.name}.
|
||||
|
||||
= form_tag(upload_image_path, multipart: true)
|
||||
= form_for :screenshot, url: upload_image_path, html: { multipart: true, id: 'file-form' } do |f|
|
||||
|
||||
/ = form_tag(upload_image_path, multipart: true, id: 'file-form')
|
||||
|
||||
.row
|
||||
.small-6.columns
|
||||
input.hidden-inputfile type="file" name="file" id="file" multiple=true
|
||||
/ input.hidden-inputfile type="file" name="image" id="file" multiple=true
|
||||
= f.file_field :image, id: 'file', multiple: true, class: 'hidden-inputfile'
|
||||
label for="file"
|
||||
a.button id="file-select-button"
|
||||
= fa_stacked_icon "image", base: "circle-thin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue