Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

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

$
0
0

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?


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>