in reply to Re: CGI File Upload
in thread CGI File Upload

Try changing line 27 (which by my count is while(<$upload_filehandle) to while(<UPLOADFILE>) and see if that helps any?


Well It's better than the Abottoire, but Yorkshire!

Replies are listed 'Best First'.
Re^3: CGI File Upload
by blm (Hermit) on Jan 15, 2006 at 12:32 UTC

    Sorry BrowserUK! Only just saw this post. I don't think that is the problem

    while <$upload_filehandle>
    is supposed to read the input. It is initialised with
    my $upload_filehandle = $query->upload("myfilename");
    On the otherhand,
    UPLOADFILE
    is supposed to be the output of the script: a copy of the uploaded file on the hard disk. I agree that the naming of my filehandles could have been much better