file upload: Netscape vs MSIE 
Author Message
 file upload: Netscape vs MSIE

Dear all who have (had) problems with file upload,

I tried to produce a html page which was capable to
make a file upload possible. Code used:

 <form method="POST" enctype="multipart/form-data"
 action="nph-fup.cgi"><input type="file" name="upfile">
 <input type="submit" value="Klik"></form>

nph-fup.cgi shows like:

 #!/bin/perl
 require "./cgi-lib.pl";
 print "HTTP/1.0 200 OK\n";
 $ret = &ReadParse;

The function readparse is in cgi-lib.pl (v2.14)

This all worked great with Netscape 3.0, but MSIE had
severe difficulties. First I had version 3.0.2. But the
<input type=file> tag gave no browse button and instead
of the file content the file nam was submitted. But hurray
MS has an add-on for file upload. No idea what the function
of that add-on was (is), but the only thing that happened
on submit_form was nothing. It appeared that 3.0.2 did not
support multipart/form-data.

OK, let's go to MSIE 4.0 preview 2. That's better but in
the readparse function MSIE 4.0 went into an eternal loop
because the "last PART if" was not satisfied.
Therefore I added a line to cgi-lib.pl
      last PART if (substr($buf, $bpos + $blen, 4) eq "");

And now it worked with 4.0, but still not with 3.0.2 + add-on.

If you have (helpful) comments please mail me.

Regards,

Johan Koolwaaij

--
 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_

 \_   Dept. of Language and Speech, Nijmegen University  \_
 \_   Tel   : +31 (0)24 - 3615820                        \_
 \_   URL   : http://www.*-*-*.com/ \_
 \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_



Tue, 11 Jan 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Netscape vs. MSIE and Perl script

2. $VARIABLE replacement in Netscape/MSIE

3. Netscape versus MSIE - forms submission problem

4. file upload works in Netscape but not IE

5. File UPLOAD not working with NetScape

6. Netscape and File Upload

7. File upload CGI script (Netscape 2.0)?

8. File upload NS vs IE

9. How to access files uploaded via file upload form controls

10. Need code to parse MSIE 5.x Cookie Files

11. Upload with Perl2 / Netscape 3.63 / WinNT 4

12. Help! upload from Netscape through AOL

 

 
Powered by phpBB® Forum Software