When you try to upload, say, https://commons.wikimedia.org/wiki/File:Foobar.jpg to your local wiki (with InstantCommons enabled) as a test of UploadWizard, it will give you a message something like "There is another file on this site with the same content." Now, you can go to the file page and discover that the file is actually transcluded from a remote repository (Wikimedia Commons), but UploadWizard won't tell you that, because it has no way of knowing without performing *yet another* API request to fetch the image info.
Now, I see two options:
- Include information about which repository has the image in the duplicate warnings array. Right now it's just an array of file names that are duplicates. If it were an array of stripped-down imageinfo objects, we could have the title, the repository name, and some extra stuff that might be useful.
- Return a different warning for duplicates on different repositories. This would be potentially more helpful, since the difference between one remote repository and another is roughly nil - however, in case you care, the new warnings array could use the above suggestion and also tell you which repository is the problem.
If there are others, I don't know, but one of those needs to happen.