> 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">
You might find the code samples here to be useful for this: http://www.figleaf.com/demo/mimetest/ Note that the middle one no longer works on our server, since we upgraded the TCP/IP stack. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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