Steps to reproduce:
- Go to Media upload dialog
- Select an image and click on "Upload"
- Now in the Details section rename the file name to "a" and click on "Save"
- An error message comes up "A file with name "$1" already exists in the shared file repository, and cannot be overwritten."
"Filename has been changed to "a.png"