in reply to Re: Re: Re: using uploadInfo from CGI.pm
in thread using uploadInfo from CGI.pm

Hi. I have the same uploadInfo problem. And if I print the resultant hash of uploadInfo, I print nothing. How come ? Anyone has solved this mystery ?? -- Michel Marcon Sysadmin Unix & WNT michel.marcon@equipement.gouv.fr
  • Comment on Re: Re: Re: Re: using uploadInfo from CGI.pm

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: using uploadInfo from CGI.pm
by pernod (Chaplain) on Mar 05, 2003 at 16:37 UTC

    Well well. Never too late is it?

    I tried the same code, and encountered the same problem. It was solved by adding the cgi object to access the upload-member.

    my $cgi = new CGI; my $info = $cgi->uploadInfo( $filename ); print "uploadInfo:<br>"; map {print " $_: " . $info->{$_} . "<br>\n" } sort keys %$info;
    Which in my case gives:
    uploadInfo: Content-Disposition: form-data; name="file";filename="C:\cool\file.t +xt" Content-Type: text/plain

    Elegant use of map in the original snippet, though.