Test browser: Version of Chrome: 52.0.2743.116
It is a simple javascript that is to open an image file from local like 'C:\002.jpg'
function run(){ var URL = "file:///C:\002.jpg"; window.open(URL, null); } run();
Here is my sample code. https://fiddle.jshell.net/q326vLya/3/
Please give me any suitable suggestions.
In Windows 10, go to Start > Settings > Privacy > File system and make sure Allow apps to access your file system is turned On.
We use Chrome a lot in the classroom and it is a must to working with local files.
What we have been using is "Web Server for Chrome". You start it up, choose the folder wishing to work with and go to URL (like 127.0.0.1:port you chose)
It is a simple server and cannot use PHP but for simple work, might be your solution:
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With