# Uploading images

**URL:** <https://www.ruby-forum.com/t/uploading-images/115950>\
**Category:** Rails\
**Created:** [September 30, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/uploading-images/115950 "2007-09-30T22:33:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [September 30, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/uploading-images/115950/1 "2007-09-30T22:33:41Z")

</div>

I am building an e-commerce site and would like to give my users the  
ability to upload images. What is the best way to do this?

What other features should I offer in uploading images? image  
manipulation…etc.?

---

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [September 30, 2007, 10:48pm UTC](https://www.ruby-forum.com/t/uploading-images/115950/2 "2007-09-30T22:48:13Z")

</div>

David M. wrote:

> I am building an e-commerce site and would like to give my users the  
> ability to upload images. What is the best way to do this?
> 
> What other features should I offer in uploading images? image  
> manipulation…etc.?

manipulating images = rmagick [http://rmagick.rubyforge.org/](http://rmagick.rubyforge.org/)

uploading images = RTFM, google or your favourite ror book 🙂

---

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [September 30, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/uploading-images/115950/3 "2007-09-30T22:57:59Z")

</div>

David M. wrote:

> I am building an e-commerce site and would like to give my users the  
> ability to upload images. What is the best way to do this?
> 
> What other features should I offer in uploading images? image  
> manipulation…etc.?

Hi, i would recommend you Rick Olsens attachment\_fu in combination with  
RMagick if you want to manipulate your pics.

Just take a look here:

[http://svn.techno-weenie.net/projects/plugins/attachment\_fu/](http://svn.techno-weenie.net/projects/plugins/attachment_fu/)  
[http://weblog.techno-weenie.net/2007/2/25/attachment\_fu-tutorial](http://weblog.techno-weenie.net/2007/2/25/attachment_fu-tutorial)

Best wishes,  
Roman

---

<div class="post-metadata">

**Author:** ![dgm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/df788c/32.png) [@dgm](https://www.ruby-forum.com/u/dgm)\
**Post date:** [October 1, 2007, 12:40pm UTC](https://www.ruby-forum.com/t/uploading-images/115950/4 "2007-10-01T12:40:28Z")

</div>

If you want to upload a file with a progress meter you can use mongrel  
upload [http://mongrel.rubyforge.org/docs/upload\_progress.html](http://mongrel.rubyforge.org/docs/upload_progress.html) . If you  
follow the instructions it not that hard to get it running. Though you  
will be tied into mongrel if you want the progress bar to work.

Other features you may want are  
Allow multiple file uploads. I dont know of any plugins that allow  
this.  
Image resizing,  
thumbnailing,  
max image size upload before the image is downloaded. Check the  
CONTENT\_LENGTH in the mongrel handler.  
image type limitation.

rmagic works well for image manipultion.

On Oct 1, 6:33 am, David M. \<rails-mailing-l…@andreas-
