in reply to Re: Re: Get vs. POST in CGI.pm
in thread Get vs. POST in CGI.pm
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};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Get vs. POST in CGI.pm
by Anonymous Monk on Sep 24, 2003 at 01:50 UTC |