I want to uplaod a file from the browser and store it in a specific location on the server using ruby on rails. Right now i am using webrick and the path of my application is c:\project_name.
Do you guys have any idea .
Thanks a lot
is it also possible using file_column to download the uploaded file .the files which are usually uploaded are either(.doc),(.txt) or(.pdf).if there is some other method please do tell me.
On the click of the file name i want to download that file which is uploaded
Last edited by Gauravbehl1; Dec 16, 2005 at 01:37.
Yes that is possible. You wont use file_column to do the downloads though. File_column stores the actual files on disk and stores the file path in the database. So you can just use the file path out of the db and make normal links to the files and the browser takes care the download. You might need to set disposition:attachment headers for some of those file types so they actually download and don't just print into the browser as text.