Forum: Ruby on Rails How to upload file together with other form data?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2cf7af8ebb619eeb30178dd8855245b8?d=identicon&s=25 Charlie (Guest)
on 2006-04-14 03:20
I have the need to create such an item in the articles database:
The article item has fields such as:title,body,etc,and also,it has an
imgUrl field which indicates the image coresponding to the article.
And now it is necessary to create the article item with all the fields
filled at one time,then I have to submit the data of the fields except
for the imgUrl and the data of a file upload form,how can I do it
simultatiously?
Thanks
2cf7af8ebb619eeb30178dd8855245b8?d=identicon&s=25 Charlie (Guest)
on 2006-04-14 05:21
Let me explain it more clear.
The form elements include other fields except for the input file will be
submit via ajax,which can not be used as file upload.If i use some
solutions such as form_remote_upload or Upload Progress,how can i
combine the two submission together after i click the "submit" button
once?
This topic is locked and can not be replied to.