Forum: Ruby on Rails Plugin for uploading a folder of images?

Posted by Max Williams (max-williams)
on 2010-03-09 11:53
Hi - can anyone recommend a plugin/gem for uploading a bunch of image
files at once, and converting them to attachments? Ideally one that lets
you select a folder and then uploads all of the images in that folder?

thanks, max
Posted by Peter De Berdt (Guest)
on 2010-03-09 14:14
(Received via mailing list)
On 09 Mar 2010, at 11:53, Max Williams wrote:

> Hi - can anyone recommend a plugin/gem for uploading a bunch of image
> files at once, and converting them to attachments? Ideally one that  
> lets
> you select a folder and then uploads all of the images in that folder?

Google "rails multiple upload". We personally use SWFupload (which you
have to manually code into the app using Javascript to make it behave
the way you want it too, but there are some example projects on github
afaik). It won't allow to select a folder, but you can easily select
all (valid) files in a folder with Command/Control-A (select all) and
queue them for upload through this Flash based uploader. Gives you
clientside validation before uploading as well as progress bars if you
want it to.


Best regards

Peter De Berdt
Posted by Max Williams (max-williams)
on 2010-03-09 14:20
Thanks Peter.  I did try googling but didn't see anything leap out at 
me, that's why i asked for recommendations.  I'll check SWFupload out. 
Happy for any other suggestions :)
Posted by Peter De Berdt (Guest)
on 2010-03-09 16:38
(Received via mailing list)
On 09 Mar 2010, at 14:20, Max Williams wrote:

> Thanks Peter.  I did try googling but didn't see anything leap out at
> me, that's why i asked for recommendations.  I'll check SWFupload out.
> Happy for any other suggestions :)

If you use SWFupload and Rails with Rack Middleware (more recent
versions), make sure you use the flash_session_cookie_middleware as
well as the cookie script from SWFupload if you want to persist
sessions with the uploads: http://pastie.org/861481


Best regards

Peter De Berdt
Posted by Max Williams (max-williams)
on 2010-03-09 16:39
i'll bear that in mind, thanks a lot.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.