How to prevent same file (duplicate file name)

How to prevent same file (duplicate file name) in Vault or simple Vault

Hello.

You may try to use the beforeAdd event to control the file adding procedure and block it on a needed condition:
https://docs.dhtmlx.com/vault/api__vault_beforeadd_event.html
Something like:
https://snippet.dhtmlx.com/ltrfuit7