javascript - File URLs or how to open folder from URL -


i have several users on intranet , have mapped drive server (e:). users on win7 , use firefox. have used xampp on server allow users access mysql files using php. use windows explorer open folder on (e:) save/modify files (jpgs, docs etc.). want put link in html open folder them.

i've spent time researching varying amounts of success , have found out may have security issues such as...

a web application not have access local machine's filesystem

but these clients accessing same server on local intranet.

i can type...

file:///c:/myfolder/mysubfolder/ 

in browser address bar opens page directory listing of files in sub folder. not ideal half way solution!

but script below not work...

window.open("file:///c:/myfolder/mysubfolder/"); 

can done?

you path be

window.open("http://localhost/myfolder/mysubfolder/"); 

or

window.open("http://ip/myfolder/mysubfolder/"); 

use absolute path this


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -