Please contact Syncfustion related errors.(fileexplorer : ajaxaction, path)
Please contact Syncfustion related errors.(fileexplorer : ajaxaction, path)
$("#fileExplorer").
path: "http://mvc.syncfusion.
//
ajaxAction:"http://mvc.
select: "onSelect"
});
URL : http://help.syncfusion.com/js/api/ejfileexplorer
Note ajaxAction but the path from the URL above and do not understand .
It is not able to understand me ajaxAction.
I will need a specific sample of the path and ajaxaction and ajaxaction.
Hi Jiyelo,
The “path” and ‘’ajaxAction’ are the properties of our “ejFileExplorer” control.
path
The property, path, denotes the filesystem path to explore. Here, we have used the Web API to mention the server-side filesystem. The path for the filesystem can be physical path or relative path, but it should be relevant to where the Web API is hosted.
ajaxAction
The property, ajaxAction, denotes the server-side action handler to perform the server-side operations. Each action performed in the client side will send the Ajax request to the server, and the request will be received at the “ajaxAction”. During this request, based on the arguments passed and the specified path, we can perform the corresponding server-side operations in the “ajaxAction” handler.To showcase the File Explorer control, path and ajaxAction are mandatory. As you know, EJ File explorer is a client-side control, but it depends on server-side actions. So, in JavaScript, to handle the server-side actions we use the Web API service and it was hosted in our server: https://mvc.syncfusion.com/ODataServices/. This helps handle Ajax request and perform file operations like Read, Remove, Rename, Create, Upload, Download, Copy, and Move in server side.
Code example [JavaScript]
| $("#fileExplorer").ejFileExplorer({ path: "http://mvc.syncfusion.com/ODataServices/FileBrowser/", ajaxAction:"http://mvc.syncfusion.com/OdataServices/fileExplorer/fileoperation/doJSONAction" }); |
We have prepared a sample for your requirement, and you can find the sample in the following location:
Sample: https://www.syncfusion.com/downloads/support/forum/120969/ze/file_(2)150048553
Please let us know if you have any queries.
Regards,
Balamurugan P
We have analyzed the provided code. You have attempted to access your local file details using our online Web API service which is not possible. Here you can access any folder/ file details that is available in the server, where service is hosted. If you want to explore the local files details in “fileexplorer” control, then you have to provide an individual service for handling Ajax request of “fileexplorer” control. Please refer to the below documentation to know the server operations in “fileexplorer”. It will be helpful to create a service for handling file operations.
Document link: https://www.syncfusion.com/downloads/support/forum/120969/ze/Server_Side_operations_in_file_explorer_control331637042
To understand the server side ajax handling operations of File Explorer control, we have provided File Explorer sample, which is created using MVC application and it is convenient to handle server side Ajax operations controller part. The same Ajax handling functions are defined in our online Web API service (https://mvc.syncfusion.com/ODataServices ) which is used to handle server side operations of File Explorer control. Please try the sample and let us know whether it is enough or you want File Explorer sample with local Web API service? If required, we will provide File Explorer sample with Web API service.
We have prepared a sample based on this and it can be downloaded from the following location:
Sample: https://www.syncfusion.com/downloads/support/forum/120969/ze/MVCAjaxHandling-453722444
Please let us know if you have any queries.
Regards,
Balamurugan P
We are unable to understand your query, so please provide more information such as video or code sample on this issue. So it would help us to investigate further and provide a solution to you.
We are still unable to view the attached images. Because you have uploaded the images in Google mail and attached that link in our RTE. Since that images has been uploaded in your google mail, it will be visible only to you when you logged in google mail account and it will not be visible to others. If possible, please send the pictures in the zipped folder to our support mailbox ([email protected]) by giving the forum number as the subject.
Please let us know, if you have further queries, we will happy to help you.
Regards,
Prasanth P
We have analyzed your JSON formatted response data. You have specified the value for “isFile” property in string format ("isFile": ”false”). Due to this reason, folder for file explorer were not rendered properly. To solve this issue, please specify the “isFile” and “hasChild” properties in Boolean format. Please refer to the below JSON formatted response.
|
response [{"success":false,"errorType":0,"message":null,"page":1,"total":1,"records":0,"index":0,"id":null,"expandObj":null,"rows":[],"fileId":null,"fileURL":null,"type":null, "fileType":null,"size":"0","createDate":null,"description":null,"fileName":null,"dateModified":"1/1/2015","hasChild":false,"isFile":false,"name":"2015","memId":null}] |
We are still unable to view the attached images. If you still encounter the issue, please send the pictures in the zipped folder and provide more information such as “ej.web.all.min” script version or video or code sample for this issue. It would help us to investigate further and provide a solution to you.
Regards,
Balamurugan P
Hi Jiyeol,
We have created a FileExplorer sample with Web API service. Please download the below attached WEB-API project and run it in your visual studio. Then, open the playground link http://jsplayground.syncfusion.com/ahhl2bju
Please find the WEB API project: https://www.syncfusion.com/downloads/support/directtrac/general/ze/FileExplorer_WebAPI1646645390
Please let us know if you have any queries,
Regards,
Balamurugan
- 10 Replies
- 4 Participants
-
JI jiyeol
- Oct 30, 2015 12:52 AM UTC
- Feb 15, 2016 02:38 PM UTC