Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML links to local network shares [duplicate]

Why do these links not work? If I click on them in FF or Chrome, nothing happens - it doesn't even try to open them!

<a href="file://someshare/dir/subdir/file.txt">Linky</a>
<a href="file:////someshare/dir/subdir/file.txt"> Linky</a>
<a href="file://\\someshare\dir\subdir\file.txt">Linky</a>

Any ideas?

like image 514
joshcomley Avatar asked Sep 23 '09 09:09

joshcomley


2 Answers

In general, this is disabled because it is a security risk. See also this question: Cross-browser link to file on local system, and the link provided by sleske to here.

like image 80
Peter Avatar answered Oct 01 '22 09:10

Peter


This is an oldie, but goodie -- still comes up quite often.

There are extensions for both browsers (FireFox & Chrome) that can allow you to access local links:

Chrome - Locallink

Firefox - LocalLink

like image 34
Sean O Avatar answered Oct 01 '22 09:10

Sean O