Ah, these are the threads I was remembering. http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820 <http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62324#339820> http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:62327#339828 <http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339828>
On Thu, Feb 24, 2011 at 1:56 PM, Andrew Scott <andr...@andyscott.id.au>wrote: > > As long as you use attachment as well as filename in the cfcontent you will > never have a problem. > > So it should something like this > > <cfheader name="Content-Disposition" > value="Attachment;FILENAME=#FileName#"> > > > Regards, > Andrew Scott > http://www.andyscott.id.au/ > > > > > -----Original Message----- > > From: Michael Grant [mailto:mgr...@modus.bz] > > Sent: Friday, 25 February 2011 5:46 AM > > To: cf-talk > > Subject: Re: cfcontent and save as > > > > > > This question comes up pretty often. I don't remember if there's actually > a fix > > or not. I remember people having problems despite using cfheader to > define > > content-type and disposition. > > Perhaps some of these will help: > > > > http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:24528 > > <http://www.houseoffusion.com/groups/cf- > > talk/thread.cfm/threadid:24528> > > http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:8207 > > > > On Thu, Feb 24, 2011 at 1:22 PM, Richard White <rich...@j7is.co.uk> > wrote: > > > > > > > > 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:342585 > > Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm > > Unsubscribe: http://www.houseoffusion.com/groups/cf- > > talk/unsubscribe.cfm > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:342587 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm