# How to make file upload

**URL:** <https://www.ruby-forum.com/t/how-to-make-file-upload/104044>\
**Category:** Rails\
**Created:** [May 13, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/how-to-make-file-upload/104044 "2007-05-13T15:53:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ackiae86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@ackiae86](https://www.ruby-forum.com/u/ackiae86)\
**Post date:** [May 13, 2007, 3:53pm UTC](https://www.ruby-forum.com/t/how-to-make-file-upload/104044/1 "2007-05-13T15:53:34Z")

</div>

Hi, guys, I’m learning to use Rails.

I want to add a file upload(_.rar,_.zip file only) funtion in my Web  
application.  
After upload, the file name will be renamed randomly and then store the  
URL of file in “file\_path” column of database.  
How to do this with Rails?

Thanks in advance!

Devine

---

<div class="post-metadata">

**Author:** ![ackiae86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@ackiae86](https://www.ruby-forum.com/u/ackiae86)\
**Post date:** [May 13, 2007, 5:09pm UTC](https://www.ruby-forum.com/t/how-to-make-file-upload/104044/2 "2007-05-13T17:09:47Z")

</div>

Attachment-fu: [http://www.clarkware.com/cgi/blosxom/2007/02/24](http://www.clarkware.com/cgi/blosxom/2007/02/24)

Zach I.  
â†’ Blog â€” [http://www.zachinglis.com](http://www.zachinglis.com)  
â†’ Company â€” [http://www.lt3media.com](http://www.lt3media.com)  
â†’ Portfolio â€” [http://portfolio.zachinglis.com](http://portfolio.zachinglis.com)

---

<div class="post-metadata">

**Author:** ![ackiae86](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@ackiae86](https://www.ruby-forum.com/u/ackiae86)\
**Post date:** [May 13, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/how-to-make-file-upload/104044/3 "2007-05-13T17:17:46Z")

</div>

take a look at [http://uploadcolumn.rubyforge.org/](http://uploadcolumn.rubyforge.org/)

Devine A. wrote:

> Hi, guys, I’m learning to use Rails.
> 
> I want to add a file upload(_.rar,_.zip file only) funtion in my Web  
> application.  
> After upload, the file name will be renamed randomly and then store the  
> URL of file in “file\_path” column of database.  
> How to do this with Rails?
> 
> Thanks in advance!
> 
> Devine
