PDF CFCONTENT Display Issue
I have a cloud share drive recently assigned to my project, and I was able to copy a number of PDF files into it. I can use Windows Explorer to navigate to that drive and bring up any PDF file with ease -- double click, view in Acrobat, no problem.
I can use CFDIRECTORY to list the contents of the directory, and I can use FileExists and CFFILE to test and grab a copy of the file, no sweat.
I put a text file in the directory, and I can pull that up with:
<cfheader name="Content-disposition" value="attachment;filename=filenamehere.txt">
<cfcontent reset="true" type="text/plain" file="file:///\\sharedDirectoryHere\filenamehere.txt">
I put a GIF in place and <image> displayed it easily.
I can use the following code pair to view PDF's on another project's share with no issue, PDF pops right up...
<cfheader name="Content-disposition" value="attachment;filename=filenamehere.pdf">
<cfcontent reset="true" type="application/pdf" file="file:///\\otherSharedDirectoryHere\filenamehere.pdf">
... but if I try to read and display a PDF on my shared directory, it tells me the file is missing or corrupt and will not display it.
Your thoughts, please?
