Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Uploading a file

by Corion (Patriarch)
on May 17, 2009 at 15:04 UTC ( [id://764517]=note: print w/replies, xml ) Need Help??


in reply to Uploading a file

... upload_file($cgi->param('file_data')); ... my $fh = $query->upload( $filename );

You're not properly using CGI::upload(). upload() takes the parameter name, not the parameter value. So, by changing it into the following, it could start to work:

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

But then again, you could maybe work some more on your code or error messages.

Replies are listed 'Best First'.
Re^2: Uploading a file
by rightfield (Sexton) on May 17, 2009 at 15:34 UTC
    Thank you, thank you, thank you, and thank you once again!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-03-28 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found