Last modified: 2013-03-17 01:02:22 UTC
Before uploading a file, it's very useful to be able to check if the file has already been uploaded using the SHA1 of the file: http://commons.wikimedia.org/w/api.php?action=query&list=allimages&format=jsonfm&ailimit=10&aisha1=babc742b02e560578d90d676dc6c9704ad773191 But if the file is then replaced by a new version, e.g. after cropping or color-correction, searching for the SHA1 of the original version returns no results. In the example above, there are two versions of the file: http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&format=jsonfm&iiprop=sha1&iilimit=10&titles=File%3AAmundsen-in-ice.jpg but searching for the SHA1 of the older version gives no results. When using SHA1 to check if a file has been uploaded before or not, it would be most useful to also include results from older versions.
*** This bug has been marked as a duplicate of bug 21345 ***