If you upload a document to the system that has the identical name to a file already existing, the system simply replaces the document without prompting a warning. It should prompt a warning to the user that the file already exists and ask if they want to replace it or not.