4
votes

Anybody knows an example tutorial, how to upload multiple files (unlimited quantity) with paperclip & Rails 3.1? All examples I've seen are uploading fixed files count per one upload.

1
That is a very simple Google search which turns up almost 15 thousand results.bricker
The very first result on Google when searching for the keywords in your title answers your question entirely.Jordan Running
May be my question wasn't explained exactly - I need to upload from 1 to n files per one upload, and in this tutorials attachments are limited 5.times { @article.assets.build }Bob

1 Answers

1
votes

I am also looking for it. I found this page:

https://github.com/blueimp/jQuery-File-Upload/

There is a demo over there. It is not based on paperclip, it seems, but then I also found this one:

https://github.com/tors/jquery-fileupload-rails

Which has a linked repository with an example with paperclip:

https://github.com/tors/jquery-fileupload-rails-paperclip-example

Maybe this one can get us in the right direction!

Good luck!