Here is the beginning of a
Rails 3 plugin for plupload
Plupload lets you upload multiple files at a time and even allows drag and drop from the local file system into the browser (with Firefox and Safari).
This plugin tries to make its integration with Rails 3 very simple.
To install (from inside your project's directory):
rails plugin install git://github.com/codeodor/plupload-rails3.git
To use:
<%= plupload(model, method, options={:plupload_container=>'uploader'} %>
<div id="uploader" name="uploader" style="width: 100%;"></div>
More info is available on the
readme file.
If it's missing a feature you'd like to see, please open an issue or fork it and add it yourself (and send me a pull request).
Hey! Why don't you make your life easier and subscribe to the full post
or short blurb RSS feed? I'm so confident you'll love my smelly pasta plate
wisdom that I'm offering a no-strings-attached, lifetime money back guarantee!
Leave a comment
I've just downloaded this plugin but I cant notice how to implement plupload using paperclip gem, is that possible? I've read a guide over the internet but it's not clear enough
Posted by Tomas
on Jun 28, 2011 at 09:42 AM UTC - 6 hrs
I made a note to try it using paperclip, but never got around to doing that. I'll try it this afternoon and see what it takes to make it work.
Posted by
Sammy Larbi
on Jun 28, 2011 at 01:01 PM UTC - 6 hrs
I can confirm that using the example from PaperClip's readme, the plupload-rails3 plugin works and uploads the file(s) that paperclip then processes.
However, if you weren't sending :params=>{:something=>'someval'} as one of the options to the plupload method, there was a bug that caused it not to work. That's been fixed now, so it would be good to update the plugin to the latest code.
If there's something you're doing that's not working, let me know and I'll be glad to figure it out and fix it if I can.
Posted by
Sammy Larbi
on Jun 28, 2011 at 02:29 PM UTC - 6 hrs
Leave a comment