Hi all,
I am trying to figure out a way to download an email attachment to the 
client without displaying the full path of where the file is stored.  

As of now I am using the <cfcontent> tag with a type of x-application, 
and then passing it the path and filename, for example:

<cfcontent type="x-application" 
file="#attachment_path#\#file_name#">

This seems to work ok, except it gives the file it is downloading the 
same name as the ColdFusion template...in this case 'getAttachment.cfm'. 
 The content of the file is correct, but the name isn't.  Is there a way 
to change this?  

I'm going to guess there is a better way of doing this.  Any 
suggestions?  

Thanks,
Jared

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to