in reply to Re^4: File Upload On Windows 8 and Perl
in thread File Upload On Windows 8 and Perl
The docs for CGI say the upload can return undef if there was a problem and you should call it like this :-
my $file = $q->upload( 'uploaded_file' ); if ( !$file && $q->cgi_error ) { print $q->header( -status => $q->cgi_error ); exit 0; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: File Upload On Windows 8 and Perl
by skosterow (Novice) on Jul 04, 2015 at 17:31 UTC | |
by marinersk (Priest) on Jul 04, 2015 at 17:34 UTC |