Extension:MultiUpload

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
MultiUpload

Release status: unmaintained

MultiUpload Screenshot.png
Implementation Special page
Description Allows users to upload more than one file at a time
Author(s) Travis Derouin (Tderouintalk)
Last version 2.1 (2012-07-16)
MediaWiki 1.19+
Database changes no
License GPL 2.0 or later
Download
README
CHANGELOG
Parameters

$wgMaxUploadFiles (not respected as of r115614)

Hooks used
UploadComplete

SkinTemplateBuildNavUrlsNav_urlsAfterPermalink

Check usage and version matrix
Bugs: list open list all report

The MultiUpload extension allows users to upload more than one file at a time, the extension tries to recreate all of the functions of Special:Upload as possible.

Contents

Installation [edit]

  1. Download the files from SVN or download a snapshot (select your version of MediaWiki)
  2. Create the folder $IP/extensions/MultiUpload
  3. Add the files to that folder
  4. Add to the end of LocalSettings.php (MW 1.16+):
    require_once("$IP/extensions/MultiUpload/MultiUpload.php");
  5. Installation can now be verified through Special:Version on your wiki
For this extension to work, you have to have already allowed uploads on your wiki, see Manual:Configuring file uploads.

Options [edit]

Creating links to the extension [edit]

In the sidebar [edit]

To add a link to the sidebar by editing MediaWiki:Sidebar, adding a new line:

** Special:MultipleUpload|multipleupload ("upload files")

or

** Special:MultipleUpload|multiupload-toolbox ("Upload multiple files").
In both examples of adding links to this extension in MediaWiki:Sidebar, if only "multipleupload" or "multipleupload-toolbox" shows in the sidebar, you may have to navigate in your wiki to "MediaWiki:Multipleupload" or "MediaWiki:Multipleupload-toolbox" and create the pages with the messages that are already shown.

Replacing 'Upload file' with MultiUpload in the sidebar [edit]

In the LocalSettings.php file, right below the last require_once line add:

$wgUploadNavigationUrl = "{$wgScriptPath}/index.php?title=Special:MultipleUpload";

Setting the maximum number of files to upload [edit]

Warning Warning: As of r115614, the $wgMaxUploadFiles global isn't respected. Members of the staff group can upload 40 files at once via Special:MultiUpload, whereas sysop group can upload 20 at once, autoconfirmed can upload 10 and all other registered users can upload 5 files at once.

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:

require_once("$IP/extensions/MultiUpload/MultiUpload.php");
$wgMaxUploadFiles = 10;

Messages [edit]

You can change the messages of this extension through pages of MediaWiki namespace starting with multipleupload. For example, [[MediaWiki:Multipleupload-text]] is the message displayed on MultipleUpload special page.

Other messages are:

multipleupload / multipleupload-desc / multipleupload-ignoreallwarnings / multipleupload-saveallfiles / multipleupload-addresswarnings / multipleupload-page / multiupload-fileuploaded / multiupload-toolbox

Sites that use MultiUpload [edit]

See also [edit]

Language: English  • português do Brasil