fires before a file is added to the queue
file | object | the file object |
vault.events.on("BeforeAdd", function(file){
if (some_check)
return false;
return true;
});
Returning false from the event handler will prevent adding of a file into the queue.