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