Github mirror of MediaWiki extension MsUpload - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Go to file
Translation updater bot 9c364f4245 Localisation updates from https://translatewiki.net.
Change-Id: I86ad023452fc076ec9abc1032ef4b05ac55da20f
2024-05-20 09:25:42 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-05-20 09:25:42 +02:00
includes Use $wgExtensionAssetsPath for loading resource file 2024-01-08 17:45:14 +00:00
resources styles: Replace deprecated Codex token 2023-10-22 23:17:40 -07:00
.eslintrc.json ESLint: remove redundant disable of vars-on-top rule 2021-07-30 23:09:35 +00:00
.gitignore Switch to eslint instead of jshint and jscs 2020-01-09 18:37:05 +08:00
.gitreview Whoops, track not trace 2016-10-24 17:03:00 -07:00
.phpcs.xml build: Updating dependencies 2021-10-05 03:36:51 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/mediawiki-codesniffer to 22.0.0 2018-09-03 05:38:42 +00:00
COPYING Add License 2015-12-05 11:04:56 +00:00
Gruntfile.js build: Use existing eslint also for json linting 2020-09-12 13:51:25 +02:00
README.md Cleanup and reorganize using Mediawiki extension standards. 2018-12-19 18:07:48 -08:00
composer.json build: Updating composer dependencies 2024-05-05 22:56:48 +00:00
extension.json styles: Replace 'mediawiki.ui/variables' call with skin variables 2023-03-20 07:28:12 -07:00
package-lock.json build: Updating grunt-banana-checker to 0.13.0 2024-05-18 18:26:18 +00:00
package.json build: Updating grunt-banana-checker to 0.13.0 2024-05-18 18:26:18 +00:00

README.md

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