Zipping Files to user defined Directory

OriginalBrownster originalbrownster at gmail.com
Fri Jul 28 08:25:38 EDT 2006


Marc 'BlackJack' Rintsch wrote:
> In <1154055565.502991.252710 at p79g2000cwp.googlegroups.com>,
> OriginalBrownster wrote:
>
> > I'm very new to python, and I have been using the TurboGears Framework
> > to use python to power my application.
> >
> > [...]
> >
> > my problems is that when I want to download that file from the server I
> > want to zip the files selected. but how does a user specify where they
> > want to save that file?.
>
> Usually the browser asks the user for a target directory.  So that's not
> your business.
>
> After the user selected the files you have to zip them on the server, for
> instance in a temporary in the `/tmp/` directory and then deliver that
> archive to the user.
>
> Ciao,
> 	Marc 'BlackJack' Rintsch


THanks Marc,

That makes sense. I can zip the files to a temp directory. However,
How do I deliver the archive to them?...




More information about the Python-list mailing list