Mediawiki massive file import

From emboxit
Jump to: navigation, search

Commonist

  • Massive upload of files to wiki
Uses API.php of Wiki
tested for localhost only (nikos)


  • Run directly from saved directory:
File:Commonist-4.jpg


  • Change wikis.txt
found here:
File:Commonist-5.jpg


to
File:Commonist-2.jpg



  • Select directory that contains the files in the local computer (...eprojects in below)
  • Ready to update, just press upload...

1000px

Toshiba xampp localhost

http://commons.wikimedia.org/wiki/Commons:Tools/Commonist#General_upload_settings
http://neonstau.de/commonist/
  • change wikis.txt at [commonist directory] /etc, to
# other						
mediawiki		_			http://localhost/wiki/api.php
kamelopedia		_			http://kamelopedia.mormo.org/api.php
#mediawiki		_			http://www.mediawiki.org/w/api.php
...

Update emboxit wiki

Enable File Uploads

In MediaWiki version 1.5 and later, the attribute to be set resides in LocalSettings.php and $wgEnableUploads is set as follows:
$wgEnableUploads = true; # Enable uploads


Allow upload of file types

  • As described to
Configuring file types at--> Manual:Configuring file uploads


MIME type validation

MIME type validation

 MediaWiki uses two files to check and interpret the mime type — both are plain files, with one entry per line, 
and items in one line separated by whitespace; they are located in the includes directory of your MediaWiki installation. 
If you want to upload uncommon types of files, you may need to add the appropriate information here:

mime.types is used to map MIME types to file extensions, and vice versa. It contains one line per mime type; 
the first item on the line is the (canonical — see below) MIME type,   
the items following that are file extensions that are allowed for this mime type 
(this is the same format used for the standard mime.info files on Linux/Unix systems). 
  • As mm is xml, and mediawiki detects that, I had to modify mime.types as below (NX)

File:ALLOW-DOWNLOAD OF mm.jpg