Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Map a drive to a web url

New Here ,
May 17, 2012 May 17, 2012

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

397
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 17, 2012 May 17, 2012
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources