Same again, just coming in at the tail end of this (having deleted all
previous messages).... this any good?  Remember spending a day a few
months ago on this and this seemed to work for all versions of IE that
we tested it on (5 and above I think)

<cfif FindNoCase("MSIE 5.5",CGI.USER_AGENT) GT 0>
        <cfheader name="content-disposition"
value="filename=#sFileName#">
<cfelse>
        <cfheader name="content-disposition" value="attachment;
filename=#sFileName#">
</cfif>
<cfcontent type="text/comma-separated-value">


 
> Hmm still not working...The Cfheader doesn't like the lack of 
> a " in the value field.
> 
> <CFHEADER NAME="content-disposition" VALUE="inline; 
> filename="4X4JEEP.jpg">
>       <cfcontent type="unknown" 
> file="d:\inetpub\wwwroot\portland\medialibrary\Media\4X4JEEP.jpg"
> deleteFile="No">
> 
> 

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

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

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

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

Reply via email to