I recently wrote a <CF_Download> custom tag which seems to work fairly well with any file type. I've successfully downloaded .txt ASCII files in all versions of IE with it. The only hang-up I've come across with it is the fact that <CFCONTENT> doesn't work properly (or perhaps I should say: as expected) when in a distrubuted CF environment. (It looks at directories on the web server instead of the app server)
Check it out and perhaps it will help you with your problem. -Adam Sharp -----Original Message----- From: Kevin Roche [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 7:10 AM To: Fusebox Subject: FW: Mime types for file download -----Original Message----- From: Kevin Roche [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 17:48 To: [EMAIL PROTECTED] Subject: Mime types for file download Hi, I am trying unsucessfully to create a text file that is downloaded to the users machine (with IE 5 browser). I just get the text displayed in the IE window which is is not what I want. I am trying to get a dialog box to display asking for the directory/filename. I have tried the following 1 <CFHEADER Type="application/octet-stream"> 2 <CFHEADER Type="application/x-msdownload"> 3 <CFHEADER Type="text/plain"> All have the same effect. In NS 4.7 the top two will create the dialog as required but not in IE I also tried setting the header with: <CFHEADER Name='content-type' Value='application/octet-stream'> <CFHEADER Name='content-disposition' Value='Attachment: filename=#filename#'> I also tried appending the filename (file.dat) to the end of the URL. Still no luck... Anyone know why ? Kevin ______________________________________________________________________ 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 Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
