We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

FileExplorer path seting

Bonjour,
I don't find any example on how to set the path of FileExplorer. I tried path="~/" but that shows no thing


4 Replies

AB Ashokkumar Balasubramanian Syncfusion Team June 28, 2016 12:25 PM UTC

Hi Elfigha, 
 
Thanks for using Syncfusion Products. 
 
We have analyzed your requirement (To set the path for File Explorer control). Here “Path” property denotes the location of filesystem that we are going to explore in our “FileExplorer” control. You can achieve your requirement by setting the path as follows: 
 
Code example [ASPX]: 
<ej:FileExplorer ID="fileexplorer" runat="server" IsResponsive="true" Width="100%" AjaxAction="FileExplorerFeatures.aspx/FileActionDefault" Path="~/content/images/FileExplorer/"> 
        <AjaxSettings> 
            <Download Url="downloadFile.ashx{0}" /> 
            <Upload Url="uploadFile.ashx{0}" /> 
        </AjaxSettings> 
    </ej:FileExplorer> 
Note: Please ensure in your side whether the fileexplorer path is valid. 
 
We have prepared a sample based on this and you can find the sample under the following location: 
 
 
You can refer to the following user guide document for getting started with File Explorer component in ASP.NET. 
 
 
Please let us know whether the provided sample is helpful in achieving your requirement or not. If you have any other queries, please get back to us with additional information, we will happy to assist you.  
 
Regards, 
Ashokkumar B


EL elfigha June 28, 2016 06:31 PM UTC

Bonjour,
Your sample don't work on my laptop
The file attached contains source code of a very simple example. It's a web site not a web project
The controle FileExplored is on the Default.aspx

Attachment: synchfusion_bcebaa5b.rar


AB Ashokkumar Balasubramanian Syncfusion Team June 29, 2016 01:09 PM UTC

Hi Elfigha, 
 
Thanks for your update. 
 
We have analyzed your requirement (To set file path to fileexplorer) with your sample. We suspect that, you may missed the server side functionalities of file explorer in code behind section (Default.aspx) for your sample. Here server side functionalities are necessary to perform the file handling operation. 
 
Note: Ensure that you are referring all the scripts (ej) and themes (ej) in your sample. 
 
Also refer the below link to create the file explorer sample with step by step procedure. 
 
For your convenience, we have prepared the sample based on this and that same can be downloaded from the following location, 
 
 
Please let us know if you have further queries 
 
Regards, 
Ashokkumar B.


AB Ashokkumar Balasubramanian Syncfusion Team July 27, 2016 12:01 PM UTC

Hi Elfigha, 
 
We have updated almost all samples based on “path of FileExplorer component in SampleBrowser”. To know details about how to set the path in our FileExplorer component, please refer to API documentation and sample below. 
 
 
To set root folder as file path in file explorer, please refer the below code snippet. 
 
<ej:FileExplorer ID="fileexplorer" runat="server" IsResponsive="true" Width="100%"  AjaxAction="FileExplorerFeatures.aspx/FileActionDefault" Path="~/"> 
        <AjaxSettings> 
            <Download Url="downloadFile.ashx{0}" /> 
            <Upload Url="uploadFile.ashx{0}" /> 
        </AjaxSettings> 
    </ej:FileExplorer> 
 
For your convenience, we have attached the sample in the below link: 
 
 
Does this sample come close to achieving your requirement? If not, please let us know and give us more information on this to help us proceed further. 
 
Regards,  
Ashokkumar B.

Loader.
Live Chat Icon For mobile
Up arrow icon