Question
Cannot show files outside wwwroot
I have a directory with files outside my wwwroot directory. I
have aSQL database that keeps this directory adress and filename.
However when I try to access these files using a link from my
database directory, I get this message in "Firefox doesnt know how
to open this address because the protocol is not associated with
any program"
But when I type EXACTLY the same link on the Naviagation bar, I can see the file. An example of my link is:
c:\personal_matters\12.jpg. However when the file is shown, the address automatically change to file:///c:/personal_matters/12.jpg
I have tried other format in my links as shown below, but also unsuccessful. Examples of other format that I tried:
file:///c:/personal_matters/12.jpg
c:/personal_matters/12.jpg
I have tried to map out my address in Coldfusion administrator with the following:
/personal_matters c:\Personal_matters
and then accessing it through http://127.0.0.1:8500/personal_matters/12.jpg, but I get an error:
java.io.FileNotFoundException: /personal_matters/zhiwen/12.jpg
Dont know why my mapping isnt working also.
Would appreciate if anyone can help
Thanks
Watson
But when I type EXACTLY the same link on the Naviagation bar, I can see the file. An example of my link is:
c:\personal_matters\12.jpg. However when the file is shown, the address automatically change to file:///c:/personal_matters/12.jpg
I have tried other format in my links as shown below, but also unsuccessful. Examples of other format that I tried:
file:///c:/personal_matters/12.jpg
c:/personal_matters/12.jpg
I have tried to map out my address in Coldfusion administrator with the following:
/personal_matters c:\Personal_matters
and then accessing it through http://127.0.0.1:8500/personal_matters/12.jpg, but I get an error:
java.io.FileNotFoundException: /personal_matters/zhiwen/12.jpg
Dont know why my mapping isnt working also.
Would appreciate if anyone can help
Thanks
Watson
