33 Replies Latest reply on Nov 18, 2016 11:08 AM by Homestar9

    Coldfusion 11 cfheader or cfcontent 'failed to load PDF document'

    Perkley Level 1

      I have a website that worked fine with Coldfusion 10 and now I have updated to Coldfusion 11 and this code doesn't work:


      <cfheader name="content-disposition" value="inline; filename=#vPublicFile#" />

      <cfcontent type="application/pdf" file="#DownloadFolder##qryDownload.fileNameOnserver#" deleteFile="no" />


      If I type in the URL directly to the PDF file it loads fine, but if I try to get it through this code then I get the message "failed to load PDF document".  Even if I change the code to allow me to save the file, I get a saved file but it won't open in acrobat.


      I know the code is working code, I tried it with Coldfusion 10 again just to make sure.  Something about 11 is stopping it from working.  Any ideas?