Wes Gamble
2006-Apr-12 20:08 UTC
[Rails] StringIO - getting filename for multipart form uploads?
All, When using multipart forms, sometimes the files come into the controller as StringIO objects. I assume that by the time I get a StringIO object, I can''t get the name of the file the way that I might be able to using File.original_filename, correct? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
Apparently Analagous Threads
- Multiple file uploads - only one file object gets posted
- N file uploads from one post - one File, (N-1) StringIOs
- Upload problem when file is small/StringIO (read method return nothing)
- Newbie: Can''t get file to upload
- RestClient posting multipart issue - RestClient::Found Exception: 302 Found