I have a small php system i created for myself. This system contains a few .doc and .docx file documents. I want to be able to open them directly from the browser and not downloading them.
I created a link:
<a href="file:///c:/mysite/myfile.docx">myfile</a>
But FireFox does not open the link. While href="http://localhost/myfile.docx" works fine – it offers me to download the file.
Any ideas how can i do it?
Maybe change something in firfox options / security settings?
And if you are at it, is there any chance to do it in IE8?
Thanks.
Although i still think it is a programming question, it was answered here:
https://superuser.com/questions/103026/open-a-direct-file-on-the-hard-drive-from-firefox-file
Both Firefox and IE8 support the File URI scheme.
Apparently (from the same url):
but: