I was just wondering... What are the ramifications of not using cfheader
with cfcontent? I've used cfcontent before, but not in conjuction with
cfheader. Is it just a "good practice", or is it necessary?

Mark

-----Original Message-----
From: Ivan Rodriguez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 6:50 AM
To: Fusebox
Subject: Re: cfcontent and default file name


I use this code :

 <cfheader
  name="Content-Type"
  value="#getFileType#">

 <cfheader
  name="Content-Disposition"
  value="inline; filename=#GetFileName.ESDFileName#">

 <cfcontent type="#getFileType#"
           file="#FilesPath##GetFileName.ESDFileName#"
           deletefile="No">

----- Original Message -----
From: "Roger B." <[EMAIL PROTECTED]>
To: "Fusebox" <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 11:09 PM
Subject: RE: cfcontent and default file name


> > I am using cfcontent to download to a file. The file name defaults
to
> > index.cfm. Is there a way I am change the default name index.cfm to
> > something else. I am using fusebox methodology.
>
> Try something like this:
>
> <CFHEADER NAME="Content-Disposition" VALUE="inline;
filename=#clientfile#">
> <CFCONTENT TYPE="application/unknown"
>     DELETEFILE="No"
>     FILE="#serverfile#"
>     RESET="Yes">
>
>
> --
> Roger
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to