Nothing Special   »   [go: up one dir, main page]

MediaWiki extension MsUpload.

Clone this repo:
  1. e930150 build: Updating cross-spawn to 7.0.6 by libraryupgrader · 6 days ago master
  2. 89d70d1 build: Updating mediawiki/mediawiki-codesniffer to 45.0.0 by libraryupgrader · 3 weeks ago
  3. cde8683 Localisation updates from https://translatewiki.net. by Translation updater bot · 4 weeks ago
  4. 2cbd803 Localisation updates from https://translatewiki.net. by Translation updater bot · 5 weeks ago
  5. 1c24463 Fix my name in the authors by Sophivorus · 7 weeks ago

# MsUpload

Installation

To install MsUpload, add the following to your LocalSettings.php:

If necessary, adjust the global configuration:

$wgEnableUploads = true; // Enable uploads
$wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','mpp','pdf','ppt','tiff','bmp','docx','xlsx','pptx','ps','odt','ods','odp','odg');
$wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)
$wgVerifyMimeType = false; // May solve problem with uploads of incorrect mime types

Then load the extension and configure it as needed. The values shown below are the defaults, so they may be omitted:

wfLoadExtension( 'MsUpload' );
$wgMSU_useDragDrop = true;
$wgMSU_showAutoCat = true;
$wgMSU_checkAutoCat = true;
$wgMSU_useMsLinks = false;
$wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox
$wgMSU_imgParams = '400px';

Credits