-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just a guess... Try replacing attachment with inline in the CFHEADER
value. That might convince the browser to display the PDF instead of
saving it, but it would still allow the proper filename to come
through if the user did decide to save it by hand.
Hope that helps,
Zac Bedell
> -----Original Message-----
> From: Peter Benoit [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 1:34 PM
> To: CF-Talk
> Subject: CFHEADER
>
>
> It seems the following won't work, well in at least IE5.5.
>
> <CFHEADER NAME="Content-Disposition"
> VALUE="attachment;filename=#attributes.fname#">
> <CFCONTENT TYPE="application/pdf" FILE="#fnp#">
>
> It instead opens the page up for download instead of the
> file. So lets say
> I have peter.pdf as my attributes.fname and download.cfm is
> the page the
> above code is on. And lets say that it's called from index.cfm.
> Well index.htm appears in the download file box, not peter.pdf.
> It seems to work
> ok in Netscape, so I can't believe I'm the only one having
> this problem.
> I've seen similar looking code on the Allaire site, but it's still
> not working. Can anyone help with this?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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