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.

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

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 :

Inserting PDFs as image thumbnails with PdfHandler
When processing regular bitmap image types with extensions like  and , MsUpload will offer you the option of inserting a link to the image (e.g.,  ), or embedding the image in the page itself (e.g.,  ).

MsUpload does not offer this option for files with  extensions by default. However, if you have installed, PDF files get their own bitmap thumbnails that can be inserted into articles with   links, just as with other conventional bitmap image types, so it makes sense to have MsUpload treat PDFs just as any other image.

, the  block which handles this is around line 188 in. Look for the  clause that handles PDFs (around line 212) and add   so that the   clause ends up looking like this:

Having made that change, Shift+reload or ⌘+reload your browser so that the new JavaScript source file is fetched from the server, rather than cache, and next time you upload a PDF, you should see both the "Insert as link" and the "Insert as image" links made available.

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.

This file did not pass file verification
If the message "This file did not pass file verification" appears, 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 " " files, try to save them as " " and upload the " " 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.