I am looking for an upload solution for Ruby on Rails where I can upload multiple large image files simultaneously and show the progress to the uploader so they know the files are being uploaded. I stumbled onto Plupload which seems perfect for what I'm trying to do, but I can't find any Ruby on Rails examples on how to incorporate into my application. Any leads, basic examples, or even alternative methods with better Rails documentation would be greatly appreciated.
Thanks for looking :)
I haven't any experience with Plupload. You can try uploadify or swfupload. Both allow to upload multiple files and whatever significant Plupload do and require Flash to be installed. In my opinion uploadify easier to implement than swfupload and it is very customizable.
Here is some examples:
You can find more examples on github.com. And you need some file attachment plugin on back-end like paperclip or attachment-fu.
You can find some tips on image preview before form submitting here. And if you use nested forms, here is complex-form-examples. See the unobtrusive-jquery branch. You can add new child on onComplete event of uploadify.
I use uploadify with paperclip, preview and nested forms.
UPDATED.
Here are some examples how to use Plupload in RoR:
File Uploads with Rails 3, Plupload, and CarrierWave
Ruby on Rails + Paperclip + PlUpload
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With