Batch importing media files into MediaWiki

From Biowikifarm Metawiki
Revision as of 00:24, 8 September 2009 by Gregor Hagedorn (Talk | contribs) (Created page with '==Importing the binary data== cd /var/www/metawiki; php ./maintenance/importImages.php --comment="My Comment" --user="MyUser" <<temp_dir>> jpg gif PROBLEM: does the --conf...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Importing the binary data

cd /var/www/metawiki; php ./maintenance/importImages.php  --comment="My Comment" --user="MyUser" <<temp_dir>> jpg gif 

PROBLEM: does the

--conf ./LocalSettings.php

work?


Important: for all batchimporting, revisiondate must be set to something newer than all old revisions; else mediawiki will sort the imported revision behind existing revisions. The id in the imported xml is not necessary, however.

For usernames the name, not the ID counts.

By default, the XML importing version of the web interface limits filesizes to around 1.4 MB. This can be changed by the server admin (or you in php.ini in maxuploadsize=); for larger imports using