Extension:MsUpload

From MediaWiki.org
Jump to: navigation, search


MediaWiki extensions manual - list
Crystal Clear action run.png
MsUpload

Release status: stable

Implementation Ajax, API
Description Multi fileupload in the editor (also Drag&Drop)
Author(s) Martin Schwindl (RatinTalk)
Last version 9.2 (2012-04-25)
MediaWiki 1.17, 1.18, 1.19
License GPL
Download http://www.ratin.de/msupload.html
Parameters

$wgMSU_ShowAutoKat, $wgMSU_CheckedAutoKat, $wgMSU_debug

Hooks used
EditPage::showEditForm:initial

Check usage (experimental)

Contents

[edit] What can this extension do?

MsUpload functions:

  • easy uploads for one or multiple files simultaneously
  • file upload directly in the editor
  • upload via drag'n'drop is supported (if Html5)
  • embedd the file into the editor as link
  • change the name of the file


Msupload 9.0.jpg
Msupload 9.1.jpg
Msupload 8.7.jpg


Additional functions:

  • add files to the actual category
  • embedd the file into the editor as image-link
  • embedd the file into the editor as image-gallery

You should know:

  • without html5 support a flash fallback is used
  • maximum filesize depends on Mediawiki settings
  • uses the plupload - upload handler [[1]]
  • adds a upload icon to the editor (also WikiEditor)

[edit] Recent Changes

Version 9.2:

  • now working with mw1.19
  • Brazilian Portuguese language added
  • Chinese language updated

Changes in Version 9.1:

  • english language file updated
  • two new messages to adjust: comment and dropzone
  • changed extension credits

Changes in Version 9.0:

  • new layout
  • testet with mw1.18.2
  • no msupload.api.php file needed anymore

Changes in Version 8.9:

  • variables provided through json
  • bug with headline dropdown fixed
  • Chinese translation(thanks to Zoglun)
  • better debug function
  • better file-extension handling

Changes in Version 8.8:

  • Internalisation (msupload.i18n.php)
  • Resource Loader
  • gallery bug fixed

Changes in Version 8.7:

  • mw 1.18 supported
  • debug div
  • improved WikiEditor support
  • latest version of plupload upload handler (1.5.2)

Changes in Version 8.4:

  • WikiEditor supported
  • changed progress bar
  • Insert as link now also possible without the MsLinks extension

[edit] Installation

To install this extension, add the following to LocalSettings.php:

##Start --------------------------------------- MsUpload
$wgMSU_ShowAutoKat = false;    #autocategorisation
$wgMSU_CheckedAutoKat = false;  #checkbox: checked = true/false
$wgMSU_debug = false;
require_once("$IP/extensions/MsUpload/msupload.php");
##End  --------------------------------------- MsUpload

[edit] Configuration parameters

[edit] $wgMSU_ShowAutoKat

true: Files, uploaded within a category will be added to this category.

[edit] $wgMSU_CheckedAutoKat

You can define whether the checkbox for above mentioned case is checked or unchecked as default.

[edit] $wgMSU_debug

If true, a status-div will show which mode is actually running (HTML5/Flash) and whether Drag&Drop is supported.

[edit] Standard configuration parameters

With adding following to LocalSettings.php you can change the global upload settings:

$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');
$wgGroupPermissions['user']['upload'] = true; # can user or only admins upload files?
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox