You need to use the cfheader tag and tell it the filename.

Regards,
Andrew Scott
http://www.andyscott.id.au/



> -----Original Message-----
> From: Richard White [mailto:rich...@j7is.co.uk]
> Sent: Friday, 25 February 2011 5:22 AM
> 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:342583
> 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:342584
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to