Wassercrats has asked for the wisdom of the Perl Monks concerning the following question:
from script:<html><body> <form enctype="multipart/form-data" action="path_to_script_that_reads_ +non_uploaded_ data_only_for_some_reason" method="post"> <p>Upload test<input type="file" size="45" name="UploadedFile"></p> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form></body></html>
Seems like it should at least print out the file name, but it doesn't. I might try to create the file upload part of the form from the script, but I already have a HTML form for the other fields, so I'd like stick with all HTML.use CGI; $CGI::POST_MAX = 4000; $CGI::MULTIPART; ### Doesn't seem to be needed in script for reading f +orm data, but I put it here in desperation $fdata = CGI->new(); $Test_Field = $fdata->param('UploadedFile'); print"$Test_Field";exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading file uploads
by benn (Vicar) on Apr 24, 2003 at 23:13 UTC | |
|