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


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.. :)