Thread:Project:Support desk/Automatic and transparent local upload of cached Instantcommoned files

MediaWiki: 1.20.3, PHP: 5.4.12, MySQL: 5.5.29, OS: Windows 7

Currently working on content for my wiki, installed using a Bitnami solution stack and with the help of copious amounts of swearing while configuring stuff. Everything so far are working as expected (short URLs, Tidy, wikEd custom buttons, subpages, imported templates, heck even managed to fix broken numbered lists when using blocks of preformatted text).

Except instantcommons. Mostly this was because I didn't really read carefully how IC worked. I expected that if did not exist locally, it would initially display it from commons, upload a local copy (with relevant metadata), then any subsequent reloads of the page would now load said local copy. What it actually does is just cache the image locally but it does not upload any file to my wiki; once cache time expires it reloads images from commons. Which is why I noticed how IC actually worked since I often need to work on my wiki without an internet connection. It should be noted though that I haven't configured anything yet for uploading (if this is in any way relevant).

So... Is there a script that can automate uploading cached instacommons files to my wiki? I have no intention to release this into the wild (well except to my content development team) so security really isn't an issue.