Skip to content

Can Not Unzip #9

Description

@David-Lee-1990

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions