<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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists