How to prevent same file (duplicate file name)

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