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
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
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
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
i'll bear that in mind, thanks a lot.