This may be overkill but I use this for a document library tool I built. Just replace some of my variable names.
<cfheader name="Content-Type" value="application/pdf"> <cfheader name="Content-Disposition" value="filename=something.pdf#"> <cfheader name="Content-Location" value="#URLEncodedFormat(documentSelect.savedName)#"> <cfcontent type=" application/pdf" file="#Folder##documentSelect.savedName#"> -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 02, 2005 11:33 AM To: CF-Talk Subject: RE: Force PDF Download This is what I am using.... <cfheader name="Content-Disposition" value="inline; filename=#pdfToCreate#"> <cfheader name="Expires" value="#Now()#"> <cfcontent type="application/pdf" file="#variables.vcSystemGeneratedAppPath##pdfToCreate#" deletefile="yes"> -----Original Message----- From: Aldon Moore [mailto:[EMAIL PROTECTED] Sent: 02 November 2005 16:54 To: CF-Talk Subject: Force PDF Download Hello People! I need to force download a pdf file but my code is trying to download the page that contains the script! <cfheader name="Content-disposition" value="attachment;filename=ebook.pdf"> <cfcontent type="application/pdf" file="d:/webspace/mysite.com/wwwroot/ebook/ebook.pdf"> but this code fails. Is there a better solution?? Aldon ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222918 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54