Hi,
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,
draggable:true,
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",
method:'post'
},
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