Original bug title:
API upload warning exists-normalized returns wrong file (the file that is uploaded, not the file that exists)
See https://commons.wikimedia.org/w/index.php?title=Commons:Upload_help&oldid=101150677#Cannot_find_existing_file.3F and http://bug-attachment.wikimedia.org/attachment.cgi?id=13083 where I tried to upload a PNG (and there was not PNG uploaded yet but a JPEG)
Version: 1.22.0
Severity: normal