Forum: Ruby on Rails Upload File Using Form

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason H. (Guest)
on 2008-12-16 08:14
I am trying to upload a CSV file through a form, process it, then input
the values in the file it into my database.  So first step, I need to
upload the file.  I created the form, uploaded a test file but I am
having trouble accessing the file in my controller.  I can access a hash
but all contains is the original filename of the file.  I guess my
question is how can I access this file and save it so that I can later
pass it to a CSV processing function.  I assume the file is uploaded to
some sort of temp file?  I am new at rails but I have accomplished
uploading and saving files in PHP before.  Any help would be great.


Keynan P. (Guest)
on 2008-12-16 10:06
see attachment_fu
This topic is locked and can not be replied to.