Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: @CGI $q->upload() doesnt work properly

by Eliya (Vicar)
on Mar 08, 2012 at 14:35 UTC ( #958476=note: print w/replies, xml ) Need Help??

in reply to @CGI $q->upload() doesnt work properly

my $upload_Handle = $q->upload($filename);

Looks like you're specifying a file name here.

It should be the name of the respective file input field in the form, presumably

<input type="file" name="upload_file" /> ^^^^^^^^^^^

just like you're already using it to get the file name via $q->param('upload_file').

my $filename = $q->param('upload_file'); # returns (client-side) +name of the file my $filehandle = $q->upload('upload_file'); # returns handle to the +server-side temp file

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2016-10-22 14:38 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (295 votes). Check out past polls.