INPUT TYPE=file in HTML
andres at corrada.com
andres at corrada.com
Thu Jul 13 15:07:29 EDT 2000
On Tue, Jul 11, 2000 at 06:41:42PM +0100, Jocelyn Paine wrote:
>
> The field is inside a form whose HTML arguments are just ACTION and
> METHOD, nothing else. The field has a TYPE argument whose value is "file",
> and a NAME attribute. And this combination of field and form works OK if I
> use it to pload a file to a Perl CGI.
>
I would guess that you do not have ENCTYPE="multipart/form-data" set in your
FORM tag. If this is missing, a <input type="file"> tag is treated as just a
normal <input type="text"> tag and the only thing you get is the name of the
file sans its contents.
------------------------------------------------------
Andres Corrada-Emmanuel Email: andres at corrada.com
------------------------------------------------------
More information about the Python-list
mailing list