Upload multiple files to Ruby on Rails 3

I would like to upload several images to my Rails 3 application. I am currently using Paperclip to upload images, and I have some post-processing operations assigned to the Photo model.

I saw several samples on the network (integration of uploadify, swfupload or some other libraries), but no one was very detailed, and each of them skipped a few steps. What is the easiest way to do this?

+7
source share
2 answers

Good jQuery jQuery-File-Upload downloader. There are several samples of clips in it, and you can find a demo here.

+11
source
@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") } 
0
source

All Articles