NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

Replies are listed 'Best First'.
Re: Upload Using CGI
by davis (Vicar) on Nov 08, 2001 at 20:58 UTC
    Are you actually using the CGI.pm param() method to get the filehandle?. As already stated - more code would make it easier to help.
    davis
Re: Upload Using CGI
by George_Sherston (Vicar) on Nov 08, 2001 at 20:38 UTC
    Should work, if $upload is a good file handle. How are you getting $upload? Post more code! It's free, don't be shy!

    BTW, you can surround any code you post with <code> tags which make it easier to read, preserve your indenting etc.

    § George Sherston
Re: Upload Using CGI
by joealba (Hermit) on Nov 08, 2001 at 21:44 UTC
    Make sure you have the enctype set properly in your form tag:
    <form enctype="multipart/form-data" method="post" ....>