Extension:MultiUpload
|
MultiUpload Release status: beta |
|||
|---|---|---|---|
| Implementation | Special page | ||
| Description | Allows users to upload more than one file at a time | ||
| Author(s) | Lee Worden (originally by Travis Derouin) | ||
| Latest version | 3.0 (2014-04-09) | ||
| MediaWiki | 1.19+ | ||
| Database changes | No | ||
| License | GNU General Public License 2.0 or later | ||
| Download |
README |
||
|
|||
|
Translate the MultiUpload extension if it is available at translatewiki.net |
|||
| Check usage and version matrix; code metrics | |||
| Bugs: list open list all report | |||
The MultiUpload extension allows users to upload more than one file at a time. It aso unpacks package files (.zip, .tar, .tar.gz, and .tgz), allowing the files found in the package to be uploaded to the wiki.
Contents
Installation[edit | edit source]
- Download and extract the file(s) in a directory called
MultiUploadin yourextensions/folder. If you're a developer and this extension is in a Git repository, then instead you should clone the repository. - Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/MultiUpload/MultiUpload.php";
- Done! Navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.
Options[edit | edit source]
Creating links to the extension[edit | edit source]
In the sidebar[edit | edit source]
To add a link to the sidebar by editing MediaWiki:Sidebar, adding a new line:
** Special:Multiupload|multiupload ("upload files")
or
** Special:Multiupload|multiupload-toolbox ("Upload multiple files").
Replacing 'Upload file' with MultiUpload in the sidebar[edit | edit source]
In the LocalSettings.php file, right below the last require_once line add:
$wgUploadNavigationUrl = "{$wgScriptPath}/index.php?title=Special:MultiUpload";
Setting the maximum number of files to upload[edit | edit source]
| As of r115614, the $wgMaxUploadFiles global isn't respected. After that commit, members of the staff group could upload 40 files at once via Special:MultiUpload, whereas sysop group could upload 20 at once, autoconfirmed could upload 10 and all other registered users could upload 5 files at once. Now, after complete replacement of the source code, it begins with one file and adds more as files are selected, with no upper limit. |
To set the number of files to upload at once, Configure $wgMaxUploadFiles in your local settings file, the default setting is 5. The $wgMaxUploadFiles statement must be made after the require_once call. For example:
$wgMaxUploadFiles = 10;
Messages[edit | edit source]
These messages and their names have changed since April 9, 2014, when the extension was rewritten. Notably, the message displayed on the top of the special page is now called Multiupload-text, no longer Multipleupload-text. Some of the older extension messages no longer exist. |
You can change the messages of this extension through pages of MediaWiki namespace starting with multipleupload. For example, [[MediaWiki:Multiupload-text]] is the message displayed on MultipleUpload special page.
Other messages are:
multiupload-submit/multiupload-uploadedto/multiupload-row-name-base/multiupload-unpack-button/multiupload-notify-ok/multiupload-upload-package-error/multiupload-unpack-error/multiupload-http-error/multiupload-file-unpacked-from