Thread:Project:Support desk/Undelete and Deletedrevs API/reply

Hmm, we perhaps need a better api for this.

You can do the following (Warning ugly hacks up ahead): Do /w/api.php?action=query&list=filearchive&faprop=sha1&faprefix=image_name_here.jpg Take the sha1 hash returned, and convert it to base 36 (The api outputs it in base 16. If you have command line access to MediaWiki you can convert it easily with maintinance/eval.php running the command   Otherwise, it'd be kind of difficult, although its not all that hard to program a computer to convert bases  ). Once you have it in base36, that should be the file parameter that Special:Undelete takes