Got this from another list...  Use a combination of CFHEADER and CFCONTENT
to force the download.  Make sure that the content type is unknown
otherwise, if a registered type the browser will try and display...

<CFHEADER NAME="Content-Disposition" VALUE="filename=#URL.imgfilename#">
<cfcontent type="application/unknown" FILE="x:\path\#URL.imgfilename#"
DELETEFILE="No">

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: Vance Duke [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 17, 2001 11:56 AM
To: CF-Talk
Subject: Force File Download



I am trying to offer a link on a website, for ALL kinds of file types.  I
want to force file download even for files that are an understood MIME type,
i.e. GIF, JPG, DOC, XLS, etc.  I do not want this to open in the browser.
Can anyone help me?

Thanks,
Vance Duke
Sr. Cold Fusion Developer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to