# Image upload

**URL:** <https://www.ruby-forum.com/t/image-upload/195964>\
**Category:** Rails\
**Created:** [October 4, 2010, 9:02am UTC](https://www.ruby-forum.com/t/image-upload/195964 "2010-10-04T09:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arivarasan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@arivarasan](https://www.ruby-forum.com/u/arivarasan)\
**Post date:** [October 4, 2010, 9:02am UTC](https://www.ruby-forum.com/t/image-upload/195964/1 "2010-10-04T09:02:48Z")

</div>

Hi i am newbie to RoR, i like to know how to upload a image in rails?  
some one help me plz.

---

<div class="post-metadata">

**Author:** ![arivarasan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@arivarasan](https://www.ruby-forum.com/u/arivarasan)\
**Post date:** [October 4, 2010, 9:08am UTC](https://www.ruby-forum.com/t/image-upload/195964/2 "2010-10-04T09:08:53Z")

</div>

try paperclip  
[http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/](http://jimneath.org/2008/04/17/paperclip-attaching-files-in-rails/)

> **[GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord](https://github.com/thoughtbot/paperclip)**
>
> Easy file attachment management for ActiveRecord. Contribute to thoughtbot/paperclip development by creating an account on GitHub.

On Mon, Oct 4, 2010 at 12:32 PM, Arivarasan Lingasamy  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)wrote:

> removed\_email\_address@domain.invalid[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> .  
> For more options, visit this group at  
> [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Thanks:  
Rajeev sharma

---

<div class="post-metadata">

**Author:** ![arivarasan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ba9def/32.png) [@arivarasan](https://www.ruby-forum.com/u/arivarasan)\
**Post date:** [October 4, 2010, 5:07pm UTC](https://www.ruby-forum.com/t/image-upload/195964/3 "2010-10-04T17:07:41Z")

</div>

I’m a big fan of dragonfly. One of the main differences between  
paperclip and dragonfly is that paperclip generates all the sizes of  
image you need when you upload the file, where dragonfly generates (and  
caches) the files you on the fly. There are pros and cons to each, but  
both are good.

Tutorial:

> **[On-the-fly image handling with Dragonfly](https://thoughtbot.com/blog/dragonfly)**
>
> Dragonfly lets you dynamically crop, resize and transform images through the URL.

Dragonfly:

> **[GitHub - markevans/dragonfly: A Ruby gem for on-the-fly processing - suitable...](https://github.com/markevans/dragonfly)**
>
> A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more! - GitHub - markevans/dragonfly: A Ruby gem for on-the-fly processing - suitable for image upload...

Luke
