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

Please contact Syncfustion related errors.(fileexplorer : ajaxaction, path)

Thread ID:

Created:

Updated:

Platform:

Replies:

120969 Oct 30,2015 12:52 AM UTC Feb 15,2016 02:38 PM UTC JavaScript 10
loading
Tags: ejFileExplorer
jiyeol
Asked On October 30, 2015 12:52 AM UTC

Please contact Syncfustion related errors.(fileexplorer : ajaxaction, path)


$("#fileExplorer").ejFileExplorer({

            path: "http://mvc.syncfusion.com/ODataServices/FileBrowser/",

                            // From 13.3.0.7 version, we use below path for “ajaxAction” API

            ajaxAction:"http://mvc.syncfusion.com/OdataServices/fileExplorer/fileoperation/doJSONAction",

            select: "onSelect"

});



본문 이미지 1

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.



Balamurugan P [Syncfusion]
Replied On October 30, 2015 11:56 AM UTC

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: http://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: http://www.syncfusion.com/downloads/support/forum/120969/ze/file_(2)150048553

Please let us know if you have any queries.

Regards,

Balamurugan P


jiyeol
Replied On November 2, 2015 12:58 AM UTC



본문 이미지 1

본문 이미지 3
<script type="text/javascript">
        $(function () {        
            $("#fileExplorer").ejFileExplorer({                                
                path: "http://localhost:7070/marketing/resources/UploadImages/Coupon/",
//above URL specifies the file system path, which is available in our Web API server. Here we will populate the content of "FileBrowser" folder into our file explorer. 
                ajaxAction: "http://mvc.syncfusion.com/OdataServices/fileExplorer/fileoperation/doJSONAction"                
//Here "ajaxAction" specifies the URL of our Web API server method "doJSONAction", which is going to handle file operations like "Read", "Rename", "Remove" etc..
            });
        });  

본문 이미지 4



Having put the path of the folder, but does not the operation.
Geotingayo to give the match to make my AJAXACTION this case?

jiyeol
Replied On November 2, 2015 02:30 AM UTC

I think there is a thing that us support the sample and json format of ajaxaction?

Balamurugan P [Syncfusion]
Replied On November 2, 2015 12:58 PM UTC

Hi Jiyelo,
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: http://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 (http://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: http://www.syncfusion.com/downloads/support/forum/120969/ze/MVCAjaxHandling-453722444
Please let us know if you have any queries.
Regards,
Balamurugan P

jiyeol
Replied On November 10, 2015 07:19 AM UTC

receive a response type to directory also the recognition to file.

본문 이미지 1

Prasanth Palani [Syncfusion]
Replied On November 11, 2015 11:36 AM UTC

Hi Jiyeol,

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 (support@syncfusion.com) 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


jiyeol
Replied On November 12, 2015 12:36 AM UTC

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}]


본문 이미지 1





I think I want to change the file of 2015 in the folder format. Or it must be a what format type is for that?



Balamurugan P [Syncfusion]
Replied On November 12, 2015 12:16 PM UTC

Hi Jiyeol,
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

Chris Aiken
Replied On February 14, 2016 02:38 AM UTC

I would love to see a File Explorer sample with Web API service

Balamurugan P [Syncfusion]
Replied On February 15, 2016 02:38 PM UTC

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: http://www.syncfusion.com/downloads/support/directtrac/general/ze/FileExplorer_WebAPI1646645390


Please let us know if you have any queries,

Regards,

Balamurugan


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.

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

;