Check File Exists

For Vault 3; Do you have an example how you would check that the file already exists on the server and then send that to control and give option to replace or cancel? If Cancel then take the duplicate out of the control?

On same idea; if you don’t care about prompting and just replace silently check if file exists and replace it in control instead of 2 of same file name showing up in the window?

We use PHP is that helps with providing a sample

Thanks