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

problem downloading the file from file explorer


I am using the file explorer to in my project everything is working fine, except when i try to down load the file the request to download the file is send using get method and not post. Also there are no parameters passed to the request. the code for the same is :

var fileSystemPath = '/Files/';
                // var fileSystemPath = "/Files";

var ajaxActionHandler = "/FileHandler";

$(id + " .fileExplorer").ejFileExplorer({
    path: fileSystemPath,
    ajaxAction: ajaxActionHandler+ params,
    ajaxSettings: {
        read: {
            url: ajaxActionHandler + params,
            dataType: "json"
        createFolder: {
            url: ajaxActionHandler + '/create-folder',
            dataType: "json"
        remove: {
            url: ajaxActionHandler + '/remove',
            dataType: "json"
        rename: {
            url: ajaxActionHandler + '/rename',
            dataType: "json"
        paste: {
            url: ajaxActionHandler + '/paste',
            dataType: "json"
        getDetails: {
            url: ajaxActionHandler + '/get-details',
            dataType: "json"
        upload: {
            url: ajaxActionHandler + '/upload',
            dataType: "json"
        download: {
            url: ajaxActionHandler + '/download',
            dataType: "json",
        getImage: {
            url: ajaxActionHandler + '/get-image',
            dataType: "json"
    toolsList: ["creation", "navigation", "editing", "copyPaste", "getProperties", "layout"],
    tools: {

        creation: ["NewFolder"],

        navigation: ["Back", "Forward", "Upward"],

        editing: ["Refresh", "Upload", "Delete", "Rename", "Download"],

        copyPaste: ["Cut", "Copy", "Paste"],

        getProperties: ["Details"],

        layout: ["Layout"],

    isResponsive: true

Thanks in advance

1 Reply

BP Balamurugan P Syncfusion Team November 15, 2016 09:36 AM UTC

Hi Allessio, 
Thanks for using Syncfusion Products. 

We have analyzed the reported issue with your provided code blocks. In our FileExplorer, we have processed the request in URL format for “upload, download and getImage” actions. So you can’t specify AJAX settings for these actions and you can  specify the URL only, not other properties like “ datatype, method, etc..”.  
Please refer following link. 

Also its compulsory to add “{0}” in the end of “upload, download and GetImage” URLs. That helps to pass the internal parameters with the action request. 

upload: {
    url: ajaxActionHandler + ‘/upload{0}’
download: {
    url: ajaxActionHandler + ‘/download{0}’   
GetImage: {
    url: ajaxActionHandler + ‘/get-image{0}’

Please let me know if you have any concerns. 

Balamurugan P 

Live Chat Icon For mobile
Up arrow icon