Craig -
What browser isn't behaving using your code?
I test for IE on the Mac first, then run the below, which is actually part of a custom
tag called
cf_outputdelimfile that I altered a bit. IE on the Mac doesn't seem to like CFHEADER
(at least not with this
syntax).
<cfif not MACIE>
<CFHEADER NAME="Content-Disposition" VALUE="inline;
filename=#variables.outputFilename#">
</cfif>
<cfcontent type="application/unknown"
file="#variables.outputDir##variables.outputFilename#"
deletefile="#variables.deleteFile#">
Steve
craig girard wrote:
> yes, this is what I have for cfcontent/cfheader.
>
> <cfheader name="content-disposition" value="inline;
> filename=#attributes.filename#">
> <cfcontent type="application/unknown"
> file="#GetDirectoryFromPath(GetTemplatePath())##vPath#" deletefile="No">
>
> thanks,
>
> Craig
> ----- Original Message -----
> From: "Ken Beard" <[EMAIL PROTECTED]>
> To: "Fusebox" <[EMAIL PROTECTED]>
> Sent: Monday, April 09, 2001 2:29 PM
> Subject: Re: downloading excel files
>
> > You're trying to generate an excel file from the db for the user to
> download?
> > Are you using cfcontent and cfheader?
> >
> > At 11:15 AM 4/9/01 -0400, you wrote:
> > >Hello,
> > >
> > >We have an application that allows people to download their product
> > >information in an excel file. The problem I am running into is FORCING
> it
> > >to download rather than load in the page. We have tried a few things,
> > >some work in certain browsers but not in others. Anyone have a sure fire
> > >way to force a download?
> > >
> > >Thanks,
> > >
> > >Craig
> > >
> > >
> > >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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