My Secret Life as a Spaghetti Coder
home | about | contact | privacy statement
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!


Comments
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

PS: PaperClip's readme that I referenced in the comment above is at https://github.com/thoughtbot/paperclip/tree/c17a3...

Posted by Sammy Larbi on Jun 28, 2011 at 02:30 PM UTC - 6 hrs

Leave a comment

Leave this field empty
Your Name
Email (not displayed, more info?)
Website

Comment:

Subcribe to this comment thread
Remember my details
Google
Web CodeOdor.com

Me
Picture of me

Topics
.NET (19)
AI/Machine Learning (14)
Answers To 100 Interview Questions (10)
Bioinformatics (2)
Business (1)
C and Cplusplus (6)
cfrails (22)
ColdFusion (78)
Customer Relations (15)
Databases (3)
DRY (18)
DSLs (11)
Future Tech (5)
Games (5)
Groovy/Grails (8)
Hardware (1)
IDEs (9)
Java (38)
JavaScript (4)
Linux (2)
Lisp (1)
Mac OS (4)
Management (15)
MediaServerX (1)
Miscellany (76)
OOAD (37)
Productivity (11)
Programming (168)
Programming Quotables (9)
Rails (31)
Ruby (67)
Save Your Job (58)
scriptaGulous (4)
Software Development Process (23)
TDD (41)
TDDing xorblog (6)
Tools (5)
Web Development (8)
Windows (1)
With (1)
YAGNI (10)

Resources
Agile Manifesto & Principles
Principles Of OOD
ColdFusion
CFUnit
Ruby
Ruby on Rails
JUnit



RSS 2.0: Full Post | Short Blurb
Subscribe by email:

Delivered by FeedBurner