Get Callback with Multiple Upload

Hello ,
How to return all callback response with multiple upload, i had read this sample,
https://docs.webix.com/samples/21_upload/03_manual_send.html

but it’s only once callback, i want upload multiple file and it’s return multiple response callback too

Hello @vickypaulantono ,
А direct response contains information about one file. You can run a cycle that will get to each file’s value:

$$("upl1").send(function(){
    $$('upl1').files.data.each(function(obj){
        var status = obj.status;
        var name = obj.name;
        if(status=='server'){
            var sname = obj.sname; //came from upload script
            webix.message("Upload: "+status+" for "+ name+" stored as "+sname );
        }
        else{
            webix.message("Upload: "+status+" for "+ name);
        }
});

Please check the snippet:
https://snippet.webix.com/5fce6b76

Also you can try to use onFileUpload (it’s fired on every single file) and onFileUploadError events:

$$("upl1").attachEvent("onFileUpload",function(file, response){
    // uploading finished 
});
$$("upl1").attachEvent("onFileUploadError",function(file){
    // error response
});