The cfcontent tag is fine.

If that tag is in a file called dload.cfm, link to it like this..

dload.cfm/#filename#?file=#filename#

It's a hack, but it works.

-----Original Message-----
From: Curtis C. Layton [mailto:[EMAIL PROTECTED]]
Sent: 06 August 2001 18:21
To: CF-Talk
Subject: Downloading Files via CFContent


I'm trying to download files using CFContent using the following code.

<CFCONTENT TYPE="application/unknown" FILE="#FileLocation#filename#">

Is there a way to change the default file name from the cold fusion
template's name to the actual file name?  I'm trying to have users download
files, but I don't want them to open the files in their browser.  I want to
mask the location of the files.  Please help.


Curtis C. Layton
Senior Web Applications Developer
Words In Progress, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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