problems uploading zipfile with cgi

Matthew Perpick mperpick at wgen.net
Tue Nov 23 17:21:49 EST 2004


Hello All,

trying to upload a zip file to a python cgi-script and I am having some
trouble. the form has enctype="multipart/form-data".

i can access the file as a string like this:

zip = form.keys['zip_file'].value

but I cannot seem how to create a ZipFile object from this data. It only
wants a filename or a "file-like object" in the constructor.

can anyone help? I am a little bit lost.

Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20041123/c6d6ebd3/attachment.html>


More information about the Python-list mailing list