I tried to open file:///sharedDrive url in new window of broswer using
<button onclick="myFunction()">Folder</button>
<script>
function myFunction()
{
window.open("file://///sharedDrive/folder/");
}
</script>
Its opening url in IE, but not in Firefox/Chrome.
Even i tried to open this url using
reponse.sendRedirect("file://///sharedDrive/folder/");
But its appending localhost:port\\ before opening this url.
imho there is no way to open a file in chrome anyways, but it will be downloaded. Even if you type the file:// url directly in the address bar, the same happens, regardless of shared or local file. The only exceptions are pdfs and images.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.