BeforeAdd

fires before a file is added to the queue

void BeforeAdd(object file);
fileobjectthe file object

Example

vault.events.on("BeforeAdd", function(file){
    if (some_check)
        return false;
    return true;
});

Related samples

Details

Returning false from the event handler will prevent adding of a file into the queue.

See also
Back to top