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
});