On Fri, Feb 24, 2012 at 15:11, Petr Kadlec <petr.kad...@gmail.com> wrote: > On 24 February 2012 15:09, Johannes Weberhofer > <jweberho...@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%20Einstein%20Head.jpg&prop=imageinfo&iiprop=url -- schnee _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l