Multiple files uploading on Ruby on Rails 3 [closed]
Asked Answered
S

2

8

I 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?

Shellans answered 16/2, 2011 at 15:35 Comment(0)
O
11

A good JQuery uploader is jQuery-File-Upload . It has some paperclip samples and you can find a demo here

Ophthalmic answered 16/2, 2011 at 16:3 Comment(0)
R
0
@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")
}
Rede answered 26/8, 2015 at 15:53 Comment(1)
It's not clear how this answers the question at all. Please edit with more information. Code-only and "try this" answers are discouraged, because they contain no searchable content, and don't explain why someone should "try this". We make an effort here to be a resource for knowledge.Dubious

© 2022 - 2024 — McMap. All rights reserved.