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

Re: Having an issue with my CGI.pm file uploads

by toolic (Bishop)
on Sep 25, 2007 at 16:30 UTC ( [id://640985]=note: print w/replies, xml ) Need Help??


in reply to Having an issue with my CGI.pm file uploads

Did you check if $upload_filehandle is defined before using it?
my $upload_filehandle = $i->upload( 'JARFILE' ); print "upload_filehandle not defined\n" unless (defined $upload_fileha +ndle);

Replies are listed 'Best First'.
Re^2: Having an issue with my CGI.pm file uploads
by technojosh (Priest) on Sep 25, 2007 at 16:45 UTC
    OK, if I add that print statement, you are correct...

    It isn't getting defined.

    So then, is my problem the upload function in CGI.pm? The call:

    my $upload_filename = $i->param( 'JARFILE' );
    successfully returns the filename, but the call:
    my $upload_filehandle = $i->upload( 'JARFILE' );
    is apparently the issue?
      The documentation on CGI offers some reasons why upload might return an undef value. You've already exceeded my experience with this module. Perhaps wiser monks have better advice.
      I am having the same issue. Did you find out the problem?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found