Change

fires after an operation (add, upload, remove) performed on a file

void Change( [string id,string status,object file] ){ ... };

Parameters

idstringthe ID of the file
statusstringthe status of the operation: 'add', 'update', 'remove'
fileobjectthe file object

Example

vault.events.on("Change", function(id,status,file){
    console.log("file"+id);
    console.log("operation"+status);
    console.log(file);
});

Back to top