[Zope] dynamic download filenames
John Ziniti
jziniti@speakeasy.org
Wed, 22 May 2002 14:37:51 -0400
How about this:
response = REQUEST.RESPONSE
response.setHeader('Content-Disposition', 'inline;
filename='TheFilenameYouWant.txt')
HTH -
Ziniti
Charles Fulton wrote:
>I can use a simple script to retieve the file contents and the
>relevant meta data from the database but the browsers default to
>saving the name of the script in the 'href='.
>
>Will I need to generate a dtml method with the proper name that does a
>call to the script and then destroy this method when I'm done? Surely
>there's something more elegant than doing it that way.
>
>If i get this one I should stay busy for a while and stop harassing
>the list ;^)
>
>Thanks,
>Charlie
>
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>
>