Here is the piece of code I use it works fine in IE and Netscape.

   <CFHEADER 
       NAME="Content-Disposition" 
       VALUE="attachment; filename=#GetCustDocs.filename#">
           
  <CFCONTENT 
       TYPE="application/unknown"
       FILE="#application.fileRoot#\CustDocs\#GetCustDocs.filename#" 
       DELETEFILE="No"> 

Dave

-----Original Message-----
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 08, 2001 12: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

Reply via email to