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

Re: Re: Uploading files using

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
in thread Uploading files using

I read through 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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128383]
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
Find Nodes?
    Voting Booth?

    No recent polls found