Here's a snip from one of my apps:

<cfheader name="Content-Disposition" value="attachment;
filename=#REreplace(documentinfo.filename, '[^a-zA-Z0-9._-]', '_', 'all')#"
/>
<cfcontent file="#application.document_directory#/#documentinfo.filename#"
deletefile="false"
type="application/octet-stream"
reset="true" /><cfabort />

That's at 4 includes deep.  You might try adding the RESET attribute to
CFCONTENT.  That will remove all content that has been previously emitted.
I don't know about the headers.  I suspect that if you've previously used
CFHEADER to supply a content-type header, that CFCONTENT will write a new
one, not replace the existing one, but you'd have to check for sure.

Cheers,
barneyb

> -----Original Message-----
> From: Joe Eugene [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 01, 2004 12:49 PM
> To: CF-Talk
> Subject: Re: Any Possible Bugs in CFMX - <CFContent> ? (Was -
> CFHEADER & CFCONTENT question)
>
> Barney,
>
> Are your programs using the below kinda routine/syntax.
>
> <cfheader name="content-disposition"
> value="attachment;filename=#variables.docInfo.docFileName#">  
>  <cfcontent type="application/pdf"
> file="#variables.docInfo.docFileNamePath#">
>
> If the Main page is set to use "text/html" content type and
> the subsequent inlcude page
> switches the header information like the above... Can this
> cause the problem?
>
> Thanks,
> Joe Eugene
>   ----- Original Message -----
>   From: Barney Boisvert
>   To: CF-Talk
>   Sent: Thursday, April 01, 2004 12:53 PM
>   Subject: RE: Any Possible Bugs in CFMX - <CFContent> ? (Was
> - CFHEADER & CFCONTENT question)
>
>
>   I've never had issues and I've served files up to a few
> meg, both reading
>   from the filesystem and dynamically generated in realtime.
>
>   Cheers,
>   barneyb
>
>   > -----Original Message-----
>   > From: Joe Eugene [mailto:[EMAIL PROTECTED]
>   > Sent: Thursday, April 01, 2004 9:48 AM
>   > To: CF-Talk
>   > Subject: Re: Any Possible Bugs in CFMX - <CFContent> ? (Was -
>   > CFHEADER & CFCONTENT question)
>   >
>   > Anybody?
>   >   ----- Original Message -----
>   >   From: Joe Eugene
>   >   To: CF-Talk
>   >   Sent: Wednesday, March 31, 2004 4:43 PM
>   >   Subject: RE: Any Possible Bugs in CFMX - <CFContent> ? (Was
>   > - CFHEADER & CFCONTENT question)
>   >
>   >
>   >   Is there a BUG using <cfContent> in CFMX?
>   >
>   >   It throws all kinda Errors on Log Files when downloading
>   >   files larger than 100K.
>   >
>   >   Can anybody Explain the Workings behind <cfContent>
>   >
>   >   Thanks,
>   >   Joe Eugene
>   >
>   >     -----Original Message-----
>   >     From: Ketan Patel [mailto:[EMAIL PROTECTED]
>   >     Sent: Wednesday, March 31, 2004 1:20 PM
>   >     To: CF-Talk
>   >     Subject: CFHEADER & CFCONTENT question
>   >
>   >     Hi,
>   >     I have a intranet application where I am allowing people
>   > to download
>   >   access
>   >     database. Following is the code I am using
>   >
>   >     <CFHEADER NAME="content-disposition" VALUE="attachment;
>   >     filename=#FileName#">
>   >     <CFCONTENT TYPE="application/octet-stream"
>   >     FILE="#application.filehttppathstring##location#"
> DELETEFILE="No">
>   >
>   >     My problem is when I want to save the file it gives me 2
>   > options Save as
>   >     HTML Document or All files. I don't want the option to
>   > save as HTML
>   >     document. Is there any mime setting or any code change
>   > need to be done.
>   >
>   >     Any help is appreciated. Thanks in advance
>   >
>   >     Ketan Patel
>   >
>   >
>   >
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to