# Plugin for uploading a folder of images?

**URL:** <https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834>\
**Category:** Rails\
**Created:** [March 9, 2010, 11:53am UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834 "2010-03-09T11:53:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [March 9, 2010, 11:53am UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834/1 "2010-03-09T11:53:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [March 9, 2010, 2:14pm UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834/2 "2010-03-09T14:14:38Z")

</div>

On 09 Mar 2010, at 11:53, Max W. 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

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [March 9, 2010, 2:20pm UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834/3 "2010-03-09T14:20:06Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [March 9, 2010, 4:38pm UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834/4 "2010-03-09T16:38:03Z")

</div>

On 09 Mar 2010, at 14:20, Max W. 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](http://pastie.org/861481)

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [March 9, 2010, 4:39pm UTC](https://www.ruby-forum.com/t/plugin-for-uploading-a-folder-of-images/184834/5 "2010-03-09T16:39:53Z")

</div>

i’ll bear that in mind, thanks a lot.
