[Zope] Generating text/csv from DTML method, Mime Type?

Oliver Bleutgen Oliver Bleutgen <myzope@gmx.net>
Fri, 10 Nov 2000 17:12:17 +0100


> I'm create a CSV file that I would like browsers to get the "save as"
> dialog when they select it.

> I'm using RESPONSE.write() to write out the CSV file, and I set the
> Content-Type before calling RESPONSE.write


> Netscape seems to work ok, it pops up a save box for "text/csv" and
> "application/vnd.ms-excel".

> However in both cases IE5.5 just ignores the data and re-requests the
> page.

> Does anyone know *all* the steps I need to take to get this to work
> correctly with IE? I must be doing something wrong. I want to supply a
> CSV file, but generated dynamically. I'm sure I'm missing a header
> setting or something.
Adding "Content-Disposition: attachment [; filename=bla.csv]" as a http-header might help...
The part in []s is optional .
See my mail from yesterday for a bit more info

cheers,
oliver