How to make file upload


#1

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


#2

Attachment-fu: http://www.clarkware.com/cgi/blosxom/2007/02/24

Zach I.
→ Blog — http://www.zachinglis.com
→ Company — http://www.lt3media.com
→ Portfolio — http://portfolio.zachinglis.com


#3

take a look at 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