http://qs1969.pair.com?node_id=764517


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!