onUploadComplete

fires when all files have been successfully uploaded to the server

void onUploadComplete(object response);
responseobjecta server-side response (if any)

Example

$$("upl1").attachEvent("onUploadComplete", function(response){
    webix.message("done");
});

Related samples

Details

The event takes a server-side response as a parameter.

If you tune you uploading script to return a response like

PHP response

// $sname - file save name
echo "{ status: 'server', sname:'$sname'}";

you can get it on the client side:

$$("upl1").attachEvent("onUploadComplete", function(response){
    webix.message(response.status);
});
See also
Back to top