s3_direct_upload icon indicating copy to clipboard operation
s3_direct_upload copied to clipboard

Can't nest file upload form into another form

Open lacco opened this issue 12 years ago • 10 comments

I am currently implementing a form to create and edit products. Apart from a title and price, the user should be able to upload a picture. As far as I see the picture upload have to be wrapped into its own form, am I right? Do you think it would be possible to refactor the (really great!) s3_direct_upload plugin so that it doesn't require a form but operates on a div instead (as discussed in blueimp/jQuery-File-Upload#76 , for example)? Or am I missing something?

lacco avatar Apr 02 '13 10:04 lacco

Hi Lacco,

Since the form is not actually submitting to the server you can submit the form and pass the returned url to a second form's hidden field.

Hope that helps, Cory

gwincr11 avatar Apr 08 '13 13:04 gwincr11

:+1: for this it would be nice to be able so specify this on a specific field and not need a form

anark avatar Apr 10 '13 05:04 anark

My plugin allows for multiple upload fields in form, and supports nested forms: https://github.com/sheerun/s3_file_field

sheerun avatar Sep 19 '13 09:09 sheerun

My issue too :-1:

facundofarias avatar Feb 17 '15 09:02 facundofarias

@facundofarias Just use @sheerun ' s3_file_field, it's working perfectly for me....

lacco avatar Feb 17 '15 10:02 lacco

@lacco Mmmm I see. I will give it a try! Thanks

facundofarias avatar Feb 17 '15 10:02 facundofarias

What about the IE support!? Is it better!? Thanks! :+1:

facundofarias avatar Feb 17 '15 11:02 facundofarias

It would be nice to see a fix for nesting the s3_uploader_form in other forms. It's really an issue working with forms with other fields

andela-denoma avatar Oct 21 '15 14:10 andela-denoma

Any chance this has been solved cleanly? :)

steverob avatar Oct 14 '16 17:10 steverob

I thnk you'd better end up using https://github.com/odysseyscience/react-s3-uploader

sheerun avatar Oct 14 '16 19:10 sheerun