[Zope] how can I force download of a word document as a file and not have it calling word?

Andreas Heckel andreas@easyleading.org
Mon, 15 Apr 2002 14:28:40 +0200


Robert Rottermann wrote:
> 
> When I have a file object that contains a word doc "viewing" it fires up
> word and displays the document.
> What I really want is that the save file dialog is presented. So how can I
> suppress the default behavior?

You can set the content-type of the RESPONSE to
application/octet-stream.
Example:

<dtml-call
"REQUEST['RESPONSE'].setHeader('content-type','application/octet-stream')">

Andreas Heckel
andreas@easyleading.org