in reply to Re: Re: DBI script runs from command line, not from CGI
in thread DBI script runs from command line, not from CGI
-enctype => "application/x-www-form-urlencoded"
For file uploads to work the ENCTYPE must be "multipart/form-data". As you use start_multipart_form you don't need to specify an ENCTYPE as CGI.pm will specify it for you.
You do no checking to see that you got your file uploaded (it does not) and that you got wrote data in %data (no file, no %data) so you have nothing to insert.
A bit more error checking to ensure that the file arrived and that data was retieved might be in order, even though fixing the enctype should fix the problem.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Possible Bug?
by dru145 (Friar) on Apr 16, 2002 at 20:32 UTC | |
by tachyon (Chancellor) on Apr 16, 2002 at 21:32 UTC |