If I upload a file to S3 with the filename identical to a filename (Key) of an object in the bucket it overwrites it.

What are the options to avoid overwriting files with identical filenames?

I enabled versioning in my bucket thinking it will solve the problem but objects are still overwritten.

Edit
Report