Difference between revisions of "Batch importing media files into MediaWiki"
From Biowikifarm Metawiki
GiselaWeber (Talk | contribs) |
|||
Line 1: | Line 1: | ||
==Importing the binary data== | ==Importing the binary data== | ||
− | cd /var/www/testwiki; php ./maintenance/importImages.php --comment="My Comment" --user="MyUser" <<temp_dir>> jpg gif png | + | cd /var/www/testwiki; php ./maintenance/importImages.php --conf ./LocalSettings.php --comment="My Comment" --user="MyUser" <<temp_dir>> jpg gif png |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
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. | 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. |
Revision as of 11:52, 24 November 2009
Importing the binary data
cd /var/www/testwiki; php ./maintenance/importImages.php --conf ./LocalSettings.php --comment="My Comment" --user="MyUser" <<temp_dir>> jpg gif png
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
See also: Creating Mediawiki XML imports (i.e. import text for pages)