In ApiUpload, the ignorewarnings flag allows the same image to be uploaded under multiple names. That may be surprising, and is not documented on API:Upload. It may be useful to have more control over which warnings should be ignored.
Originally filed as:
Wikimedia Commons API allows to upload same file several times
Steps to Reproduce:
- Using upload-by-url, I first imported this file as Abu Dhabi (22040639).jpeg.
- I performed accidentally the same operation again with a different file name and the API allowed the upload as File:Abu_Dhabi_ESA22040639.jpeg. The same sha1 hash has been computed.
- Wikimedia Commons API allows to upload the same file several times
- Wikimedia Commons API forbids to upload the same file several times