Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML file:// links : open in explorer from Chrome

I have an html file with links like that :

<a href="N:\folder1\folder2">folder name</a>

I would like that this link opens explorer instead of a custome chrome file html based browser. This works from IE btw.

Thank you ! Nicolas.

like image 472
Nicolas Thery Avatar asked Oct 18 '13 09:10

Nicolas Thery


People also ask

Can you open File Explorer from Chrome?

Chrome new tabEnter file:///C:/Windows/explorer.exe into the Chrome address bar. A save dialog will open. Right-click any folder and select Open in new window. Navigate to the folder you want.

How do I open HTML file explorer?

HTML can be used to open a folder from our local storage. In order to open a folder from our local storage, use 'HREF' attribute of HTML. In the HREF attribute, we specify the path of our folder.

Does Chrome block file links?

For security reasons, Microsoft Edge 76+ and Chrome impose a number of restrictions on file:// URLs, including forbidding navigation to file:// URLs from non-file:// URLs. If a browser user clicks on a file:// link on an https-delivered webpage, nothing visibly happens.


1 Answers

For Chrome, Safari and Opera this isn't possible due to their security model. However, there is somewhat of a solution for Chrome in that it's possible but it has two requirements:

  1. You need to get the user to install this Chrome extension
  2. It must be over https://

You will probably encounter the same problem for Firefox since it usually requires LocalLink.

Further reading

like image 115
ediblecode Avatar answered Sep 22 '22 18:09

ediblecode