Hello,
What concerns file downloading, there’s no possibility to customize it via proxy, unfortunately.
So, you can either modify the download
method of a File Manager widget and force the webix.send
to issue a GET request
webix.protoUI({
name:"myFileManager"
download:function(id){
var url = this.config.handlers.download;
if (url)
//adding the third parameter with method name
webix.send(url, { action:"download", source: id }, "GET");
}
}, webix.ui.filemanager);
webix.ui({ view:"myfilemanager", ...})
Or, catch the onBeforeRun event and call your download logic there
$$("files").attachEvent("onBeforeRun",function(id){
//your logic
//returning false is vital since it cancels the default processing.
return false;
})
From my side, theonBeforeRun
event is more flexible. It does not affect other File Manager instances while propotype modifications do.