What about using CFCONTENT?
Try: <cfcontent type="application/pdf" file="PDFLocation" deletefile="No"
reset="Yes">
This will prevent the user fron seeing the actual location of the PDF file.
Just the Address of the CFM template that includes this tag.
Russel
============================================================
Russel Madere, Jr. Senior Web Developer
ICQ: 5446158 http://www.TurboSquid.com
Some days you eat the bear; some days the bear eats you.
============================================================
> -----Original Message-----
> From: Peter Benoit [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 13:46
> To: CF-Talk
> Subject: RE: CFHEADER
>
>
> No, would rather they could download it... and I don't wish the
> customer to
> know the location of the file
>
> -----Original Message-----
> From: Bob Silverberg [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 08, 2001 1:54 PM
> To: CF-Talk
> Subject: RE: CFHEADER
>
>
> Perhaps I'm missing something here (which is likely), but if you want to
> display a PDF file, why don't you just CFLOCATION to the PDF file, which
> will cause it to open in the user's browser (if they have the plug-in)?
>
> Bob
>
> -----Original Message-----
> From: Peter Benoit [mailto:[EMAIL PROTECTED]]
> Sent: January 8, 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