[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 15:33:07 +0200


It's not a Windows problem ... it's an IE issue. And as fare as I know 
M$ is not willing to change this behaviour :-(

Phil Harris wrote:
> 
> That makes no difference as far as I can see, as soon as Windows sees the
> .doc extensions it will fire up Word to receive the file.
> 
> Windows sets more store in the file extension than the mime type.
> > 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')">