On Fri, Feb 24, 2012 at 15:11, Petr Kadlec petr.kadlec@gmail.com wrote:
On 24 February 2012 15:09, Johannes Weberhofer jweberhofer@weberhofer.at wrote:
can someone give me an idea, how I can determine a uploaded file's real path, when I only have the filename? I have written some code but there could also be a API call available.
You mean like https://commons.wikimedia.org/wiki/Special:FilePath/File:Example.jpg ?
Better yet, use the imageinfo API call:
https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii
E.g.:
https://en.wikipedia.org/w/api.php?action=query&titles=Image:Albert%20Ei...