Also, read this blog post of mine for more details on serving files up for download.
http://www.trunkful.com/index.cfm/2010/8/4/Serving-File-Downloads-with-ColdFusion Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com wilg...@trunkful.com www.trunkful.com On Feb 25, 2011, at 4:09 PM, UXB wrote: > > To force a download no matter the type: > > <cfheader name="Content-Type" value="application/unknown" /> > <cfheader name="Content-Disposition" value="attachment; filename=#filename#" > /> > > > > Dennis Powers > UXB Internet - A website Design and Hosting Company > P.O. Box 6028, Wolcott, CT 06716 - T:203-879-2844 > W: http://www.uxbinternet.com > W: http://www.ctbusinesslist.com > > -----Original Message----- > From: Richard White [mailto:rich...@j7is.co.uk] > Sent: Thursday, February 24, 2011 1:22 PM > To: cf-talk > Subject: cfcontent and save as > > > Hi, > > for security we store xls documents in a non-web root folder. We then use a > cfcontent tag to serve the file to the user. > > the problem is when the user clicks the link they are displayed a download > dialogue and all is fine if they click 'open with ms excel', but if they > click 'save as' it saves the .cfm file and not the xls file > > is there a way to save the xls file if the user clicks 'save as' > > thanks > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342596 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm