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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ajaxAction code for server side

Thread ID:





124187 May 24,2016 12:01 AM UTC May 26,2016 05:04 AM UTC JavaScript 3
Tags: ejFileExplorer
Randy Craven
Asked On May 24, 2016 12:01 AM UTC


The code samples for ejFileExplorer have the ajaxAction member set to a doJSONPAction on mvc.Syncfusion.com.  Is it not correct that in production we will want this code on our own server?  I am not sure where to get this server side code and what server side libraries need to be referenced for it to run.

There is some server side code on the File Explorer documentation page: http://help.syncfusion.com/js/fileexplorer/how-to

Is this the code that needs to be added to my project?  Or is there another place to find it?

Thank you,

Randy Craven

Balamurugan P [Syncfusion]
Replied On May 24, 2016 02:25 PM UTC

Hi Randy, 
Yes, you can implement the file handling operations in your server as per your requirement. By default, we have provided built-in “FileExplorerOperations.cs” class for handling the file operation of “FileExplorer” in server side and you can find the file at following Web API service project. Please refer following Web API service, this may be helpful to you. 

Note: Based on the “ActionType” parameter value that is available in the “doJSONPAction” action method of “FileOperationController” class,  you can call the corresponding built-in file handling methods(Read, Search, Download, Upload, Remove, Rename etc.. ) that are available in our “FileExplorerOperations” class. 
For your convenience, we have prepared a sample and service based on this and you can find it under following location. 

Note: First run the provided Web API service, then you will get an URL like ”http://localhost:51460/ “ (Here port number may change). As per port number, use the specified URL in “path” and “ajaxAction” of FileExplorer sample. 
If you want to customize the file handling functionalities, please refer following document.  
Currently, we are making corrections in the documents with updated details and we will publish it as soon as possible. Please let us know, if you have any concerns. 

Balamurugan P 

Randy Craven
Replied On May 25, 2016 04:41 PM UTC

Hello Balamurugan P,

Thank you very much for this information.  I was able to run the run the WebAPI project and use the File Explorer sample to access the project folder.

Randy Craven

Balamurugan P [Syncfusion]
Replied On May 26, 2016 05:04 AM UTC

Hi Randy 
Thanks for your update. 
Please let us know if you require any further assistance. 

Balamurugan P 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon