in reply to Re: CGI.pm file upload freaking me out
in thread CGI.pm file upload freaking me out
yields "Can't use an undefined value as a HASH reference at testscript.pl line 274." Comment out the $format line and the rest of the script works perfectly with no other modification.my $file_name = param('photo'); my $format = uploadInfo($file_name)->{'Content-Type'};
#2: Moved the CGI::POST_MAX to the top of my script and it's now limiting upload size like it's supposed to. Yeah! Thanks bunches! Now if I could just get uploadInfo() to work I'd be all set. (Although the upload() function would be nice, I can live without it in a no strict block.)
Gary Blackburn
Trained Killer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI.pm file upload freaking me out
by chipmunk (Parson) on Jan 06, 2001 at 21:58 UTC |