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

ajaxAction code for server side


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

3 Replies

BP Balamurugan P Syncfusion Team 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 

RC Randy Craven 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

BP Balamurugan P Syncfusion Team 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 

Live Chat Icon For mobile
Up arrow icon