Multiple files uploading on Ruby on Rails 3 [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI would like to upload multiple pictures to my Rails 3 application. I am currently using Paperclip to upload a picture, and I have some post processing operations assigned to the model Photo.
I saw some samples on the net (integrating uploadify, swfupload or some other libraries), but none was very detailed, and each one misses some steps.
What is the simplest开发者_运维问答 way to do this?A good JQuery uploader is jQuery-File-Upload . It has some paperclip samples and you can find a demo here
@params = {
"FacialImage" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\sachin.jpg'), "image/jpeg"),
"Login" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\login.txt'), "application/json")
}
精彩评论