Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by pernod (Chaplain)
on Mar 05, 2003 at 16:37 UTC ( [id://240616]=note: print w/replies, xml ) Need Help??


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

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://240616]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found