Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Uploading files using cgi.pm

by c (Hermit)
on Nov 29, 2001 at 20:13 UTC ( #128383=note: print w/replies, xml ) Need Help??


in reply to Re: Uploading files using cgi.pm
in thread Uploading files using cgi.pm

I read through CGI.pm and see what you are referring to. The doc says that $fh will return a usable filehandle or undef if the param is not a valid filehandle.

I changed my existing code to reflect your suggestion, however I kept my loop in place that stick forms values into a hash. So, I ended up with something like:

my $fh = $query->upload($formdata{upload});

This ended up coming back as undef, however once I removed my hash and made a direct query:

my $fh = $query->upload('upload');

it worked. Thanks for your help.

-c

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2023-06-02 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?