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.

ajaxAction code for server side

Thread ID:

Created:

Updated:

Platform:

Replies:

124187 May 23,2016 08:01 PM May 26,2016 01:04 AM JavaScript 3
loading
Tags: ejFileExplorer
Randy Craven
Asked On May 23, 2016 08:01 PM

Hello,

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 10:25 AM

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. 

Regards, 
Balamurugan P 


Randy Craven
Replied On May 25, 2016 12:41 PM

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 01:04 AM

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

Balamurugan P 


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.

;