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?