Hello,
New to Rails, pretty new to Ruby. Running rails 0.10.1.
I must have broken something, but damned if I can figure out what I
did! I have a simple form that uploads a file to an action, using post
and multipart, yada yada.
<%= form_tag({:action=>''process_tes''}, :multipart =>
true)%>
<input type="file" name="tes_file" />
<input type="submit" name="Upload" />
</form>
But--by the time it gets to the action, it''s become a string. I
can''t
call any of the CGI.rb type methods on it. The line in development.log
looks like this:
Processing TesfilesController#process_tes (for 10.2.2.173 at Wed Mar 16
10:17:13 CST 2005)
Parameters: {"tes_file"=>"thesaurus.csv",
"action"=>"process_tes",
"Upload"=>"",
"controller"=>"tesfiles"}
Now, at one point this was working. Instead of seeing the filename
"thesaurus.csv" I would see a tmpfile object reference. My problem is
that I am utterly clueless about what might be happening that takes a
simple file upload POST Http request and extracting the filename, but
not actually accepting the file upload. Also I can''t imagine what I
did to break this.
Any help''s appreciated!
Thanks,
Jonathan
-----------------------------------
Jonathan Broad
jonathan-CXfrjL/NW9NJgPAc0y4pFg@public.gmane.org