Hmmm, I tryed to force a download of a jpg file with the following code and
browser tried to open the cfm page in Coldfusion Studio... Is there another
way to force a download? Maybe through a Metatage or Javascript?

<cfcontent type="unknown/unknown"
file="d:\inetpub\wwwroot\portland\medialibrary\Media\4X4JEEP.jpg"
></cfcontent>



-----Original Message-----
From: Fetter, Brad [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:11 AM
To: CF-Talk
Subject: RE: force a download [was: SQL concat]


Thanks Jochem I will try that..

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 1:41 AM
To: CF-Talk
Subject: Re: force a download [was: SQL concat]


Fetter, Brad wrote:
> 
> I have video, and image library on our intranet and we want to have a
> hyperlink that will allow the
> user to download the file to their hard drive without having right click
and
> select file save as. Is there an easy way to do this?

Use cfcontent with the mime type "application/octet-stream" (due to a 
bug in IE, IE requires the mime type "unknown/unknown" (b*tching to 
[EMAIL PROTECTED] about this bug is much appreciated)).

Jochem




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

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

Reply via email to