Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form-based Upload in HTML

0 views
Skip to first unread message

Dr. Clue (A.K.A. Ian A. Storms

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to Robert W. Hough
Robert W. Hough wrote:
>
> Netscape 2.04b appears to support file uploads via the following:
>
> <FORM ACTION="/cgi-bin/test" METHOD=POST ENCTYPE="multipart/form-data">
> <INPUT NAME="C:\TEST.TXT" TYPE="file">
> <INPUT NAME="Submit" TYPE="SUBMIT">
> </FORM>
>
> Note the value of ENCTYPE. My CGI script does not detect this value.
> Instead, it receives a value of "application/x-www-form-urlencoded".
> I am guessing that this is either a problem with the http daemon
> (under SUNOS 4.0.1.3), or with Netscape.
>
> If anyone has any information about this, or can give me some suggestions
> on how to perform file uploads by another method, please let me know

<FORM ENCTYPE="multipart/form-data"
ACTION="http://www.cnw.com:80/~drclue/HTML/forms.cgi"
METHOD=POST>
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>

I believe you need to specify METHOD=POST .

To see a fairly functional example goto my HTML/CGI Guide
at the following URL

http://www.cnw.com/~drclue/Formula_One.cgi

There is a search engine on my page. Enter the key-word "UPLOAD" and
press [ENTER]

The sourcecode for doing the decoding of this post is FREE.
==============================================
Dr. Clue (A.K.A. Ian A. Storms)
The InfoBON Management Team
http://www.infobon.com/

Robert W. Hough

unread,
Feb 1, 1996, 3:00:00 AM2/1/96
to
Netscape 2.04b appears to support file uploads via the following:

<FORM ACTION="/cgi-bin/test" METHOD=POST ENCTYPE="multipart/form-data">
<INPUT NAME="C:\TEST.TXT" TYPE="file">
<INPUT NAME="Submit" TYPE="SUBMIT">
</FORM>

Note the value of ENCTYPE. My CGI script does not detect this value.
Instead, it receives a value of "application/x-www-form-urlencoded".
I am guessing that this is either a problem with the http daemon
(under SUNOS 4.0.1.3), or with Netscape.

If anyone has any information about this, or can give me some suggestions
on how to perform file uploads by another method, please let me know

Thanks

epd...@fedex.com or rwh...@fedex.com


Tom Henry

unread,
Feb 4, 1996, 3:00:00 AM2/4/96
to
0 new messages