file uploading
Daniel Bretoi <[email protected]>
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've been searching through the archives, but I can't seem to get file uploading to work. Here is what I have. <% p @cgi.params['drop'].first %> <form method='post' enctype='multipart/form-data'> Drop Location: <input type=file name=drop> <input type=submit name=submit> </form> The code just returns the name of the file which is input into drop, not the file data. May I also suggest that the answer get's put on the modruby.org FAQ section as I'm sure it's a common request. Thanks, Daniel (@cgi is defined as: @cgi = CGI.new) -- "The two aims of the Party are to conquer the whole surface of the earth and to extinguish once and for all the possiblity of independant thought." -- 1984, George Orwell