简体   繁体   中英

“Not allowed to load local resource” when trying to download file from network

[server] is the name of one of the company's network [myname] is my folder

I already tried a lot of Stackoverflow solutions, but none worked The full path to the files is "\\\\server\\myname\\"

The folder is shared with everyone in the company and everyone has full permission

I tried all of the following, even with the download attribute

<a href="file:///server/myname/Test.txt">Download</a>
<a href="file://server/myname/Test.txt">Download</a>
<a href="file://///server/myname/Test.txt">Download</a>

Getting the following error everytime in Console without the download attribute

Not allowed to load local resource: file://server/myname/Test.txt

With the download attribute, I get Failed - Network error

Currently running my website on localhost with IIS and testing on Google Chrome

我认为更新的Google Chrome默认安全策略不允许您打开本地文件,请点击此链接

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM