# Uploading image(very urgent)

**URL:** <https://www.ruby-forum.com/t/uploading-image-very-urgent/135236>\
**Category:** Rails\
**Created:** [April 19, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236 "2008-04-19T16:42:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasmd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Post date:** [April 19, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236/1 "2008-04-19T16:42:12Z")

</div>

hi im anas…  
im new(means im doing my acadamic project in ror)in ror …  
i have an problem in uploading images(to store in the file system).  
im using ‘fileutils’ lib…  
plzzz… any one help me to store images in file system…  
plzzz… explain in detail with all(model,view,control) for uploading  
image using fileutils only…  
thanq

---

<div class="post-metadata">

**Author:** ![anasmd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Post date:** [April 19, 2008, 5:58pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236/2 "2008-04-19T17:58:58Z")

</div>

you can read this:

> **[Create Photo Gallery less than 10 MINUTES](http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.html)**
>
> There's many ways to create photo gallery, i want share my experience with very instant photo gallery. Begginer or advance can do it, it's e...

regard,

Reinhart  
[http://teapoci.blogspot.com](http://teapoci.blogspot.com)

---

<div class="post-metadata">

**Author:** ![anasmd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Post date:** [April 19, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236/3 "2008-04-19T20:36:24Z")

</div>

Visit Indonesia 2008 wrote:

> you can read this:
> 
> [&nbsp;ReinhartLab - Flex, Air, Flash, Ruby on Rails Spots: Create Photo Gallery less than 10 MINUTES](http://teapoci.blogspot.com/2008/04/create-photo-gallery-less-than-10.html)

Or you can use AttachmentFu.

Class Attachment

has\_attachment

validates\_as\_attachment

end

From the doc:

Example in controller:  
def create  
@attachable\_file = AttachmentMetadataModel.new(params[:attachable])  
if @attachable\_file.save  
flash[:notice] = ‘Attachment was successfully created.’  
redirect\_to attachable\_url(@attachable\_file)  
else  
render :action =\> :new  
end  
end

And you’re done.

[http://svn.techno-weenie.net/projects/plugins/attachment\_fu/README](http://svn.techno-weenie.net/projects/plugins/attachment_fu/README)

---

<div class="post-metadata">

**Author:** ![anasmd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Post date:** [April 20, 2008, 4:40pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236/4 "2008-04-20T16:40:47Z")

</div>

Yeah, I would definitely recommend attachment\_fu…

Cheers, Sazima

On Apr 19, 3:36 pm, Daniel W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![anasmd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@anasmd](https://www.ruby-forum.com/u/anasmd)\
**Post date:** [April 19, 2008, 8:37pm UTC](https://www.ruby-forum.com/t/uploading-image-very-urgent/135236/5 "2008-04-19T20:37:24Z")

</div>

Anas Ali wrote:

> hi im anas…  
> im new(means im doing my acadamic project in ror)in ror …  
> i have an problem in uploading images(to store in the file system).  
> im using ‘fileutils’ lib…  
> plzzz… any one help me to store images in file system…  
> plzzz… explain in detail with all(model,view,control) for uploading  
> image using fileutils only…  
> thanq

Also Fleximage rails plugin makes this easym as ong as you have RMagick  
installed.

> **[GitHub: Let’s build from here](https://github.com/)**
>
> GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...

The code to get it running is pretty dang minimal.
