Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.94 KB

File metadata and controls

48 lines (31 loc) · 1.94 KB
title Accessing shared folder in JavaScript File Explorer | Syncfusion
description Learn here all about accessing shared folder option support in Syncfusion JavaScript File Explorer control, it's elements, and more.
platform js
control FileExplorer
documentation UG
keywords Accessing shared folder
api /api/js/ejfileexplorer

Accessing shared folder in JavaScript File Explorer

Using “FileExplorer”, you can manage the files that are available in a shared folder of another system which is connected through LAN. Refer following steps, here you will see the details about accessing the shared folder with FileExplorer.

First you have to specify the shared folder path in any of following formats.

  1. “//Server/SharedFolder”
  2. “//Server”

Refer following code block to load the shared folder in our FileExplorer component.

{% highlight javascript %}

(function () {
    var fileSystemPath = "//Server/SharedFolder";
    var ajaxActionHandler = "/FileOperations";
    $("#fileExplorer").ejFileExplorer({
        path: fileSystemPath,
        ajaxAction: ajaxActionHandler,
        width: "100%",
        layout: "tile"
    });
});

{% endhighlight %}

N> In above code block, please specify the action method and shared folder path that is integrated with your server.

Authentication problem in shared folder

If shared folder is restricted with authentication, that time you are not able to access this folder using our FileExplorer. Here you will get an exception like “System.UnauthorizedAccessException, Please add your windows credential details to open '\server'”. In order to solve this problem, you have to add the shared folder credential details in the windows credential manager that is available in your service hosted machine.

Accessing shared folder in JavaScript File Explorer.