CGI upload
Jay Dorsey
jay at jaydorsey.com
Thu Oct 9 18:42:26 EDT 2003
Thomas Williams wrote:
> Can anyone tell me where to find info, on writing a
> script that handles a file from a CGI form?
>
Tom,
Check this out: http://www.python.org/doc/essays/ppt/sd99east/sld058.htm
And some more CGI slides here:
http://www.python.org/doc/essays/ppt/sd99east/
Also a concise example of handling an upload:
http://aspn.activestate.com/ASPN/Mail/Message/python-list/1568177
The biggest thing to remember is to add enctype="multipart/form-data" to
the HTML form tag, or the file won't get uploaded at all.
Jay
More information about the Python-list
mailing list