A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Create file description page if file is already uploaded to the server manually

vscam

Hi,

Is it possible to create file description page (using some php methods from mediawiki classes) if file was uploaded to /images folder manually by myself?

So I already have the file on a server in the correct “/images” folder and just looking for some methods which allow to create the file description page taking the filename and some other params as an input. Mb smth like createFilePage() method exists or any alternatives?

Thank you in advance for your help.

Ciencia-Al-Poder

Don’t put files directly on the images folder.

Move those images elsewhere, and use the maintenance/importImages script to put them in the correct location and also make MediaWiki aware of them

vscam

Thanks a lot, that was very helpful.
I moved the file to a different directory. So after applying this maintenance script, Mediawiki automatically creates a description page for the file. That’s what I needed.