Are you saying that upload() always succeeds with POST? What are you trying to cause it to fail? upload does not care about the file name. CGI.pm saves the data in a temporary file. You need to validate the file name if you want; it is accessible through param.
my $filename = $cgi->param('filename'); my $fh = $cgi->upload('filename'); my $type = $cgi->uploadInfo($filename)->{Content-Type};
In reply to Re: Re: Re: Get vs. POST in CGI.pm
by iburrell
in thread Get vs. POST in CGI.pm
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |