Filemanager download

I am using spring mvc backend system.

 $$("files").attachEvent("onBeforeRun",function(id){
           webix.confirm({
             text:"Do you want to download this file?",
             ok:"Yes",
             cancel:"No",
             callback:function(result){
                            console.log("result ",result);

             if(result)
             $$("files").download(id);
             }
             });
            // return false;
        });

“NetworkError: 415 Unsupported Media Type - http://localhost:8080/demo/file/download

While debugging the code, cursor is not moving to method

download is not working and when double click happened, request is redirect to REST download url, not downloading actual file content

The downloading in File Manager is handled by a backend script you provide for this operation.

If this behaviour is not suitable for you, you can 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;
});