Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: handling file uploads.

by Punto (Scribe)
on Jun 19, 2000 at 06:14 UTC ( #18759=note: print w/replies, xml ) Need Help??


in reply to handling file uploads.

Ok, I have this new problem now:

I use:

$filename = $query->param('uploaded_file');
And $filename is always empty. I know the file is being transmitted by the browser because I used netcat to see the request..

Any ideas? thanks..

Replies are listed 'Best First'.
RE: Re: handling file uploads.
by chromatic (Archbishop) on Jun 19, 2000 at 07:23 UTC
    Your input field must be named 'uploaded_file' and you really ought to use the CGI::upload() method instead of CGI::param() there.

    Probably just a typo, happens to me all the time.

    CGI::upload() was added in a newer version of CGI, so you might want to upgrade.

      Your input field must be named 'uploaded_file' and you really ought to use the CGI::upload() method instead of CGI::param() there.

      I know.. but when I use upload() I get "Undefined subroutine CGI::upload".

      Probably just a typo, happens to me all the time.

      I checked the spellig too.. :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-12-04 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?