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.
Unfortunately, activation email could not send to your email. Please try again.

FileExplorer path seting

Thread ID:

Created:

Updated:

Platform:

Replies:

124750 Jun 27,2016 03:45 PM Jul 27,2016 08:01 AM ASP.NET Web Forms 4
loading
Tags: FileExplorer
elfigha
Asked On June 27, 2016 03:45 PM

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


Ashokkumar Balasubramanian [Syncfusion]
Replied On June 28, 2016 08:25 AM

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

elfigha
Replied On June 28, 2016 02:31 PM

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

Ashokkumar Balasubramanian [Syncfusion]
Replied On June 29, 2016 09:09 AM

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.

Ashokkumar Balasubramanian [Syncfusion]
Replied On July 27, 2016 08:01 AM

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.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;