Skip to main content
Participant
May 17, 2012
Question

Map a drive to a web url

  • May 17, 2012
  • 1 reply
  • 436 views

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

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 17, 2012

    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.