Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: File Upload On Windows 8 and Perl

by RichardK (Parson)
on Jul 04, 2015 at 16:49 UTC ( [id://1133172]=note: print w/replies, xml ) Need Help??


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
    okay i added this and get no errors! :)

      Okay, well, that eliminates an error discoverd by the CGI module, which is actually a huge relief in many ways.

      After cross-checking all your absolute vs. relative filepath issues, I'm inclined to say try the TEMPoverride. Again, even if it merely eliminates that as a source of the issue, it's progress of a sort.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1133172]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found