Extension:MsUpload

The MsUpload extension allows users to upload multiple files by drag & drop in the standard MediaWiki edit page.


 * Features
 * Easily upload one or multiple files simultaneously.
 * File upload integrated in the edit page.
 * Upload via drag and drop (if HTML5 is available in browser).
 * Add the file into the edit page as a link.
 * Add the files into the edit page as a gallery.
 * Change the name of the file before uploading.
 * Add files to the current category, if the page being edited is a category page.

Installation

 * Install the WikiEditor extension. By default its editing toolbar is enabled for all users.


 * MediaWiki versions earlier than 1.25 or problems with version 1.27
 * See Known issues below.

Configuration
An editor can embed the files into the editor as a list of MsLinks with Extension:MsLinks.

Extension features
Below are the special extension features that you can set in your :

Relevant global configuration variables
Below are some of the relevant global configuration variables that you can set in your :

Configuration with PdfHandler
Extension:PdfHandler allows an editor upload PDF files and automatically generates thumbnails and image files.

MsUpload can add images to a page. However, MsUpload does not allow PDFs to be displayed as images. To add images to a page, edit the   file. Search for  in the file and add the line   to it.

Installing an earlier version of MsUpload

 * Mediawiki 1.25 and earlier: this extension no longer works.
 * [No solution]


 * Mediawiki 1.27 does not work with MsUpload 1.27, 1.28, 1.29.

Solution for Mediawiki 1.27:

(1) IMPORTANT If Extension:WikiEditor is enabled in   disable it.

(2) In Localsettings.php add two lines:



(3) Download and install  the 1.25 version of Extension:MsUpload on Github:
 * On the MsUpload/tree/REL1_25 page:
 * (a) Click the Github clone or download button.png button
 * In the drop down menu, select the   button.
 * The Zip file  will download to your desktop
 * (b) Open the Zip file
 * (c) Download and place the  files in the   folder in a directory called   in your extensions/ folder.

Done Navigate to Special:Version on your wiki to verify that MsUpload 1.25 is successfully installed.

You should know

 * Without HTML5 support Adobe Flash is used
 * The maximum file size depends on MediaWiki settings but a lower limit may be set.
 * Uses the plupload upload handler, which comes included with the extension
 * Adds an upload icon to the editor and WikiEditor.

This file did not pass file verification
If this appears: "This file did not pass file verification" add the following to

If this is not enough additionally set the following in LocalSettings.php (works for MW 22 & 24)

If you still cannot upload "ppt" files, try to save them as "pptx" and upload the "pptx" version.

Invalid CSRF token
The Invalid CSRF token message means that your browser couldn't create a secure cookie, or couldn't access that cookie to authorize your login.
 * Google Chrome
 * Open Settings, Advanced, Privacy and security, Content Settings, Cookies, Allow, Add and enter e.g., logout and login again to the wiki.


 * Firefox
 * Open Options, Privacy & Security, Cookies and Site Data, Exceptions, enter e.g., Save Changes, logout and login again to the wiki.


 * Safari
 * Open Preferences, Privacy, ensure that Cookies and website data is set to allow, logout and login again to the wiki.