Thanks, but still no luck. -jim -----Original Message----- From: Gilles Lenfant [mailto:glenfant@bigfoot.com] Sent: Thursday, January 09, 2003 7:34 PM To: zope@zope.org Subject: [Zope] Re: MSIE 6 not opening MIME attachments
"Jim Kutter" <jim@ebizq.net> a écrit dans le message de news:EBA064F73335E9479B473032FE5CBCEBCE0975@cmburns.ebizq.net... I'm trying to send a CSV via a python script. My problem is in IE 6, if the user clicks on "Open" instead of save from the dialog that appears, Excel will launch, but not find the file in the Temporary Internet Files folder. Clicking on "Save" then opening the file manually works just fine.
Is this a problem with my response headers or an IE bug?
Here are the headers I'm sending:
response.setHeader('Content-Type', 'text/csv') response.setHeader('Content-Length', len(printed)) response.setHeader('Content-Disposition', 'attachment; filename=%s' % filename)
return printed
Hi Jim, This works for me... RESPONSE.setHeader('Content-Type', 'text/comma-separated-values; charset=ISO-8859-1') RESPONSE.setHeader('Content-Disposition', 'attachement; filename=sometable.csv') ... even when omiting 'Content-Length' header. Hope this helps -- Gilles _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )