Shawn, >From everything I've read, the value should be #variables.filename#. Gave it a shot anyway ... No luck ... Does essentially the same thing.
Thanks though. Anyone else? -----Original Message----- From: Shawn Regan [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 10:18 AM To: CF-Talk Subject: RE: Force download of file Instead of: value="attachment;#variables.filename#"> shouldn't it be value="attachment;#variables.fullpath #"> Not sure without testing. Shawn -----Original Message----- From: Matt Kornguth [mailto:[EMAIL PROTECTED] Sent: Friday, June 13, 2003 7:12 AM To: CF-Talk Subject: Force download of file 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 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4