I believe the crucial piece is that you have "inline" instead of
"attachment" in your cfheader.  Try changing that and see if that
fixes the problem.

Matt


On Wed, 16 Feb 2005 09:54:23 -0600, Robert Shaw <[EMAIL PROTECTED]> wrote:
>  
> Here is the code I am using. It still just displays instead of forcing a
> download. I should mention that this website is still running on CF 4.5 
>   
> Should I move it over to CF 7 
>   
> <cfheader name="Content-Disposition" value="inline; filename=#varFile#">
> <CFCONTENT TYPE="application/unknown" reset="yes"
> file="#varwebpath#\ftp\ftpfiles\#varFile#" >
>  
>   
> Robert 
>  
> ----- Original Message ----- 
> From: Jordan Gouger 
> To: [email protected] 
> Sent: Wednesday, February 16, 2005 9:21 AM 
> Subject: Re: cfcontent 
> 
>  
> Robert, 
>   
> Try this: 
>   
>  <CFHEADER NAME="Content-Disposition"
> VALUE="attachment;filename=#filename#.jpg"> 
> 
>  <cfcontent type="application/unknown" reset="Yes"> 
>   
> This will force an unknown mime-type to the browser, and will result in a
> download diaglog. 
>   
> Also, if you use this, its good pratice to use <cfsetting
> enablecfoutputonly="yes"> to surpress white space. 
>   
> Thanks, 
>   
> Jordan
> 
> Matt Woodward <[EMAIL PROTECTED]> wrote: 
> Can you post your code?
> 
> 
> On Tue, 15 Feb 2005 10:12:19 -0600, Robert Shaw wrote:
> > 
> > I have a site that a photographer uses to allow his clients to upoad
> images.
> > After he cleans the image, he wants the client to be able to download. I
> > used CFCONTENT, but it only displays the image, does not force the
> download.
> > 
> > What am I doing wrong? 
> > 
> > 
> > 
> > Robert Shaw
> > 
> 
> 
> -- 
> Matt Woodward
> [EMAIL PROTECTED]
> http://www.mattwoodward.com
> ----------------------------------------------------------
> To post, send email to [email protected]
> To unsubscribe: 
> http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
> To subscribe: 
> http://www.dfwcfug.org/form_MemberRegistration.cfm
> 
> 
> 
> 
>  
>  
>  


-- 
Matt Woodward
[EMAIL PROTECTED]
http://www.mattwoodward.com
----------------------------------------------------------
To post, send email to [email protected]
To unsubscribe: 
   http://www.dfwcfug.org/form_MemberUnsubscribe.cfm
To subscribe: 
   http://www.dfwcfug.org/form_MemberRegistration.cfm


Reply via email to