How To Raise a File Download Dialog Box for a Known MIME Type
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q260519
cfheader name=Content-Type value=application/powerpoint
cfheader name=Content-Disposition value=attachment; filename=test.ppt
Try that.
I've got a .mht (multipart html) that I generated from powerpoint. My
end result is to be able to fill in pieces of a powerpoint slide on
the fly with CF to generate the appropriate .mht file to a user.
However, if I pass it to the user as an .mht, it tries to open in the
browser. I added a cfcontent and cfheader to the top of the page
to try to get it to force the filename to go back to the browser as a
ppt so they can save it or open it. The code works fine on MX 6.1 but
I can't get it to work on CF5. Anyone have any gotchas or reasons why
I can't do it?
Snippet:
cfheader name=Content-Type value=application/powerpoint
cfheader name=Content-Disposition value=inline; filename=test.
ppt
I also tried to use a cfcontent type=application/powerpoint
reset=yes and all the combinations I could think of but it just
wouldn't work. Like I said I copied the exact same code to 6.1 and all
works well.
John Burns
~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251361
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4