how to make a link to a shared folder

0

I'm trying to make a hyperlink in html , to open a shared folder (open it with the explorer.exe of Windows ) from my intranet, I do not know if it can be achieved, because I have read in several pages and in the majority it says that it can not be done because of security issues. I only found a page in which I said that it was possible as long as they were in the same network (if this condition is met)

This is the code I use.

  <div class="card">
     <a class="card-footer clearfix small z-1" href='file:///\mex\mon\kate\ka\files\'>
       <span class="float-left">Shared Folder</span>
       <span class="float-right">
         <i class="fa fa-angle-right"></i>
       </span>
     </a>
     </div>

When I clicked, I get this error in the console

Not allowed to load local resource: file:///\mex\mon\kate\ka\files\

I explain myself better ... what I want is, for example as in any browser, that when downloading a file there is a hyperlink that says show in folder, and when clicked, opens it and shows everything inside

    
asked by user80520 23.07.2018 в 22:36
source

1 answer

0

first you can not access remotely from a web page to a local directory, it clearly tells you here:

Not allowed to load local resource

translation: It is not allowed to load local resources

The best option is to create a folder on your server and add the path of your folder where you have the files you want to show. You can also show the folders of your folder that you want to see.

Update

first: your route is wrong, it is not like that, it should be something like this:

<body>
	<div>
		<a href="C:\Users\sudhanshu\Pictures">Click here to open the folder
		</a>
	</div>
</body>

I also suggest reading chrome permissions

how to create a shared folder in a intranet

WHAT DO I RECOMMEND ME?

create a root server (main) and then make it visible to all computers in your network (intranet) and ready.

    
answered by 23.07.2018 в 22:43