Copy link to clipboard
Copied
I have a file management system built in coldfusion. The files are uploaded to a seperate drive on the server, outside of IIS.
So while web files are loaded onto C:\inetpub for example, all of the files uploaded through this system go onto D:\Uploads
If the document is a PDF, I would like for them to be able to click the image of the PDF and the file open up in the browser, but instead it gives me an error, because it is looking for the file at http://whatever.com/uploads... How can I point the browser to the correct URL in this instance...?
Thanks in advance for your help.
Aaron
Copy link to clipboard
Copied
I think you'll have to use cffile to read the file, then serve it up with cfcontent. You can't browse to directories outside your webroot.