Zipping Files to user defined Directory
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Jul 28 02:27:17 EDT 2006
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
More information about the Python-list
mailing list