http://www.perlmonks.org?node_id=158400


in reply to Uploading a File with CGI.pm

According to the CGI perldoc you need to make sure to start your form code with start_multipart_form... are you doing that? Also it should be my $filehandle = param('file') or die "$!"; according to the same POD.

Replies are listed 'Best First'.
Re: (ichi) Re: Uploading a File with CGI.pm
by dru145 (Friar) on Apr 11, 2002 at 19:49 UTC

    According to the CGI perldoc you need to make sure to start your form code with start_multipart_form...

    I must have missed that. I had start_form I changed it to start_multipart_form and now it works!

    Thanks,
    Dru
    Another satisfied monk.