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