Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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


Comment on Re: @CGI $q->upload() doesnt work properly
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2014-07-24 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls