> "Blandford, Simon [BSS Audio UK]" wrote:
> I am compressing files which need to be uncompressed inline before
> download. The DTML <href=...> calles a python method in the product
> which returns the uncompressed file data. Say this file is an MSWord
> document, how do I return this as a file to download? Presently, the
> browser just tries to display the binary file and makes a mess of it.
> Simon B.
It probably is not setting the content-type header. Add something like
this to the method that returns the data:
Where content_type is set to the MIME type of the data, which for MSWord
| Casey Duncan
| Kaivo, Inc.
| [EMAIL PROTECTED]
Zope-Dev maillist - [EMAIL PROTECTED]
** No cross posts or HTML encoding! **
(Related lists -