How to upload a file using http protocol

DeepBleu DeepBleu at DeepBleu.org
Fri Sep 20 19:15:49 EDT 2002


Yes it is.  Assume that the user has to enter the file name (with the path)
on a form.  You use File type form element which allows the user to browse
for the file.
Using CGI module, and a Submit button (or some javascript with a submit
function) this form element has a KEY.  The VALUE of this key is the Byte
content of the file, NOT the file name.  Thus, by using the VALUE KEY, the
server is actually receiving the byte content.  From there on, the sky is
the limit.
DeepBleu

"A" <export at hope.cz> wrote in message
news:mailman.1032552637.6156.python-list at python.org...
> Hi,
> Does anyone know how to upload a file through HTTP protocol?Is that a
possible?
> Thank you for help.
> ladislav
>
>
>





More information about the Python-list mailing list