[Zope] How to set filename for download???

Jerome Alet alet@unice.fr
Mon, 9 Jul 2001 09:24:21 +0200 (MET DST)


On Mon, 9 Jul 2001, Robert Rottermann wrote: 
> when downloading a file Zope automatically assigns the id of the object to
> download as the filename to save.
> How can I override that?

<dtml-call "RESPONSE.setHeader('Content-Disposition', attachment;
filename=myfile.html)">

All on a single line.

hoping this helps.

bye,

Jerome Alet