lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev file uploads in forms


From: Klaus Weide
Subject: Re: lynx-dev file uploads in forms
Date: Fri, 3 Dec 1999 02:39:56 -0600 (CST)

On Thu, 2 Dec 1999, David Woolley wrote:

> > 991121 Thomas Burdick asked: 
> > > Are there any plans to add support for file uploads in forms?
> >  
> > it's not clear just what you are referring to:
> 
> He means multipart/form-data

Your are confusing two issues.  "multipart/form-data" has been supported
for a long time.  What isn't supported[*] is the TYPE=file attribute on
INPUT elements.  Don't equate those two.

[*] Except for some code in the devel code that doesn't work properly
afaik.

> This produces the following message in 2.7.2 and I suspect still does
> in the current version:

No.  (Not in the current version, at least.)

> Enctype multipart/form-data not yet supported!  Cannot submit.

The only place where this message occurs in the source is surrounded by:

#ifdef NOTDEFINED /* We're disabling form inputs instead of using this. - FM */
   .....
#endif /* NOTDEFINED */

(The comment is now misleading, since "multipart/form-data" does NOT cause
disabling of form inputs.)

It has been like that for a long time, longer than since 2.7.2 came out.
(Maybe "multipart/form-data" handling was disabled in 2.7.2 for some
strange reason, but I don't know a good reason why that would be the
case.)

The following should work in all recent version:

<TITLE>test</TITLE>
<FORM ACTION="http://localhost/cgi-bin/test-env"; METHOD=POST
ENCTYPE="multipart/form-data">
<INPUT NAME=n1 VALUE="value 1">
<INPUT NAME=n2 VALUE="value 2">
<INPUT TYPE=submit NAME=n3 VALUE="submit me">
</FORM>


    Klaus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]