FileUpload via CGI by Python

Joonas Paalasmaa joonas at olen.to
Sat Apr 13 16:57:57 EDT 2002


Järvinen Petri wrote:
> 
> Hey, i'm trying to do form that uploads file to server.
> 
> Is there any ready solutions?

Use cgi module to do the parsing on server side. Remember to use correct
enctype in your html code, like below.

<form action="upload.py" method="POST" enctype="multipart/form-data">



More information about the Python-list mailing list