Hi all, I am totally new about CGI and Perl, and now, I've facing my first problem so 
hope  somebody
can help...

I have this html code :

<form action="getfile.pl" method="post" enctype="multipart/form-data">
<input type=file name=file>
<input type=submit>
</form>

and I have this Perl code :

 #!C:/Perl/bin/perl.exe
print "Content-type: text/html\n\n";
print "OK";

my problem sounds strange ... when I am uploading a text file, result comes fine.
but when I upload a binary file ( *.exe *.jpg), my browser directly point me to 
that "Cannot open page" die page. 

Note, the "Cannot open page" die page prompts immediately when I click on Submit,
It doesn't looks like other script errors, some delay  will taking place before take 
me to
that die page.

I also tried the fatalsToBrowser (the piece from CGI.pm), but still no use. The browser
sounds take me to that die page without thinking...  Both IE and NS result the same on 
both ME and Win2K also...

Why ? Please help. Thank you.




Reply via email to