Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- CGI::uploadInfo returning undef?
April 18, 2005, 5:00 pm
rate this thread
Need a bit of help with CGI::uploadInfo method - I'm sure I used to be able
to get it to work.....
use CGI qw/all/;
my $q=new CGI;
my $file=$q->param('my_resource'); # yes it is a multi-part form generated
# getting here fine
my $upload_info2=$q->uploadInfo($q->upload('my_resource')); # trying to
use the filehandle instead
# both undef?
# end snippet
When I run this code both $upload_info1 AND $upload_info2 are undef?!? I can
successfully upload and save the file but I just can't seem to get the