> Thanks for your suggestion. I'm sure your solution would have worked
> but I started messing with getPageContext() and was able to use that
> to overwrite the existing headers.
>
> I found that by doing the following after <cfcontent> it corrected my
> problem.
> <cfset getPageContext().getResponse().setHeader("Cache-control",
> "must-revalidate, post-check=0, pre-check=0")>
> <cfset getPageContext().getResponse().setHeader("Pragma","public")>
>
> Thanks,
> Asaf
Hi Asaf. Did you ever get this resolved? I am trying to download files to a
user's browser via SSL. I too am having no problems in Firefox or Safari, but
in IE 8 I just get the actual text of the document streamed to the browser
instead of downloaded. Here's the code I'm using:
<cfheader name="Content-Disposition" value="attachment; filename=test.doc">
<cfcontent type="application/unknown" file="c:\sites\test.doc">
I've tried using inline instead of attachment, and being more specific with the
content type (i.e. application/msword) but nothing I'm doing is helping this
work in Internet Explorer.
If someone has any idea, I'd really appreciate it.
Thanks,
- Andrew.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334143
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm