Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Re: Re: using uploadInfo from CGI.pm

by Anonymous Monk
on Oct 18, 2002 at 14:54 UTC ( [id://206322]=note: print w/replies, xml ) Need Help??


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

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 09:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found