Robert,
On the line that says: <cfheader name="Content-Disposition" value="inline; filename=#varFile#"> replace it with this:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;filename=#varFile#">.
I believe that this should work in CF4.5, but I'm not entirely sure. I use MX 6.1, and it works with that. In theory what should happen is that when this page is executed, a file dialog will pop-up asking the user to download the file as specified in the variable #varFile#.
Thanks,
JOrdan
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.5Should 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 GougerSent: Wednesday, February 16, 2005 9:21 AMSubject: Re: cfcontentRobert,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 <[EMAIL PROTECTED]>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
