forked from allanlei/python-zipstream
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi, thanks for your contribution. I build a service, which serve a zip file to download, using webpy. I can successfully download the zip file, but I cannot unzip it. How can I solve this?
I use the same code as follows.
def GET(self): path = '/path/to/dir/of/files' zip_filename = 'files.zip' web.header('Content-type' , 'application/zip') web.header('Content-Disposition', 'attachment; filename="%s"' % ( zip_filename,)) return zipstream.ZipFile(path)
Metadata
Metadata
Assignees
Labels
No labels