Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File:// link doing nothing in all browsers

I have a link being generated that looks like so:

<a target="_blank" title="Test" href="file:///c:/test.xls">Test</a>

This link is inside an iframe.

When I click on it (in any major browser), nothing happens. Fiddler records no traffic. Pasting the URL into the nav bar works fine - the file download box comes up, and I can download the file no problem.

I've tried every variant of the URL structure (correct and incorrect, colons, slashes, backslashes, etc.) that I can think of.

I'm certain that it's some kind of security restriction, but I can't for the life of me find out what it is or how to get around it. I'm feeling pretty foolish at this point. Any simple explanations?

like image 836
womp Avatar asked Feb 01 '26 12:02

womp


1 Answers

Sorry, if you are pulling this page off of a server (acessing it as http://), the security settings won't let you link to local content (acess links as file://). I've had this same problem accessing shared .doc files in a wiki. Never came up with a good solution.

like image 186
Byron Whitlock Avatar answered Feb 04 '26 05:02

Byron Whitlock



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!