I designed a small site useig cgi scripts and there I have an upload page. The problem is that I got error "document is empty" when I try to upload some files using netscape 4.78 (solaris) and I got no error when I'm using Mozilla. The error ocur after few minutes from the start of the upload.
If somebody knows something about that .... please help me.
<FORM NAME=run method='POST' enctype='multipart/form-data' action="cgi-bin/upload.cgi>
<INPUT TYPE=FILE NAME=file SIZE=20 MAXLENGTH=40>
<INPUT TYPE=SUBMIT ......
$in = &ReadParse;
open udinfo, "upload.file";
print udinfo "$file_typ $fn\n";
Chances are good that your ReadParse routine does not correctly handle multipart streams. You should use the CGI module instead.
And just on another note, all your scripts should be run with use strict and use warnings and corrections made for the problems they find.
Hi, Thank you for helping me.
This ReadParse subroutine is from cgi-lib.pl. I found this library on Internet. I don't have much experience with CGI but I'm learning So I don't understand the meaning of the 'use strict and use warning and corrections'. If you have time please tell me how to use this.
You can find much more information at http://www.perldoc.com/
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)