BeforeUploadFile

fires before file upload begins

void BeforeUploadFile(object file);
fileobjectthe file object

Example

vault.events.on("BeforeUploadFile", function(file){
    console.log(file.id);
    return true;
});

Details

Returning false from the event handler will prevent file uploading.

See also
Back to top