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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to