I added the "attachment" attribute, but it still saves as "scriptname.cfm" It does work for IE, but NN is the problem.
<CFHEADER NAME="Content-Disposition" VALUE="Attachment;FILENAME=#tempFileName#.xls"> <CFCONTENT TYPE="application/vnd.ms-excel" DELETEFILE="YES" FILE="D:\PATH\TO\FILE\XLS\#tempFileName#.XLS"> Dave ----- Original Message ----- From: "Michel Gallant" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 8:43 AM Subject: RE: CFM File Extension for Downloads <cfheader name="Content-Disposition" value="attachment; filename=MyFile.xls"> Is what I use and it works great...The value of your cfheader is missing "Attachment". -----Original Message----- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: December 4, 2001 9:39 AM To: CF-Talk Subject: CFM File Extension for Downloads Hello, I'm creating Excel documents for download. I've created the cfheader and cfcontent type (see below) however, when you try to download in Netscape, the name of the script "script.cfm" is saved vs. the name of the "file.xls" that I create. What's the work around for this so that the file is saved (or opened) as the .xls name I've given it? <CFHEADER NAME="Content-Disposition" VALUE="FILENAME=""#tempFileName#.xls"""> <CFCONTENT TYPE="application/vnd.ms-excel" DELETEFILE="YES" FILE="D:\PATH\TO\FILE\XLS\#tempFileName#.XLS"> Thanks, Dave =============================== David R Hannum Ohio University Web Analyst/Programmer (740) 597-2524 [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists