Alright, I'm sure I'm missing something simple, but ... I'm trying to force a file download using the following code in a template called force_download.cfm: <CFSET filename = "test.pdf"> <CFSET fullpath = "c:\test.pdf"> <CFHEADER name="Content-Disposition" value="attachment; #variables.filename#"> <CFCONTENT type="unknown" file="#variables.fullpath#" deletefile="No"> I get a File Download dialog box, but it is prompting to download the cfm file (force_download.cfm) instead of test.pdf. I found the following article at Macromedia, but had the same results when implementing the code changes indicated. http://www.macromedia.com/support/coldfusion/ts/documents/tn17216.htm Any help would be greatly appreciated, Matt Kornguth Web Applications Developer BLR.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4