What happens when you upload a new file with the same name as existing file?

What happens when you upload a new file with the same name as existing file?

It will add a number with the file name and upload it. For example, you have a file name “Important.txt” and you are retrying to upload the same again. It will be uploaded with the name “Important-1.txt”.