You could serve the file up with CFCONTENT and use a Content-disposition header to 
mark the content as an attachment (giving you the Save As box).

This would require the file to be called via a cfm file though, instead of a straight 
link to the text file.

Perhaps there is a better way..

HTH
-R

-----Original Message-----
From: Wurst, Keith D. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 4:52 PM
To: CF-Talk
Subject: force a download - .txt file


Hi everyone. I am trying to force a "save as" box in IE when a user clicks
on a link that creates a .txt file. What keeps happening is that the browser
will open the .txt file and display it - when what I really want is for the
user to be prompted with a "save as" box. Has anyone figured out a way to do
this? Thanks very much.
Keith


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to