[Zope] Setting filename of files to be downloaded

Fred Drake fdrake at gmail.com
Mon Nov 6 10:12:14 EST 2006


On 11/6/06, Ulla Theiss <u.theiss at eurodata.de> wrote:
> The Problem is, that the file to be downloaded always is called displayFile.
> According the the content-type it is sometimes called displayFile.pdf,
> displayFile.txt, displayFile.tif, etc.

You can use the Content-Disposition header to mark the file as a
download rather than view-in-browser, and suggest a filename.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca


More information about the Zope mailing list