[Zope] opinions needed on methods for file download...
Tony McDonald
tony.mcdonald@ncl.ac.uk
Tue, 27 Jul 1999 10:26:55 +0100
At 8:35 am +0100 27/7/99, Phil Harris wrote:
>Tone,
>
>There is header you can send which sets the 'real' name of the file to be
>downloaded.
>
>I've seen this discussed on the PHP list quite recently, might be worth
>doing a search there.
>
>HTH
>
>Phil
>
Magic Phil!
The correct header is Content-disposition
doing
RESPONSE.setHeader('content-type', mimetype)
RESPONSE.setHeader('content-disposition', 'filename=%s' % filename)
in my external method, the system tries to save the downloaded file
as 'filename'
thanks
tone
------
Dr Tony McDonald, FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2