开发者

Multiple files uploading on Ruby on Rails 3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

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?


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")
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜