Extension:MultiUpload

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

Release status: beta

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.0 (2010-11-09)
MediaWiki 1.16+
Database changes no
License GPL 2.0 or later
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

README
CHANGELOG

Parameters

$wgMaxUploadFiles

Hooks used
UploadComplete

SkinTemplateBuildNavUrlsNav_urlsAfterPermalink

Check usage (experimental)
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

[edit] Installation

  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");
    or add to the end of LocalSettings.php (<MW 1.15):
    require_once("$IP/extensions/MultiUpload/SpecialMultiUpload.php");
  5. Installation can now be verified through Special:Version on your wiki
Note: For this extension to work, you have to have already allowed uploads on your wiki, see Manual:Configuring file uploads.

[edit] Options

[edit] Creating links to the extension

[edit] In the sidebar

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").
Note: 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.

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

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

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

[edit] Setting the maximum number of files to upload

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:

In MW 1.16+

require_once("$IP/extensions/MultiUpload/MultiUpload.php");
$wgMaxUploadFiles = 10;
or in <MW 1.15
require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
$wgMaxUploadFiles = 10;

[edit] Messages

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

[edit] Sites that use MultiUpload

[edit] See also

Language: English  • Português do Brasil
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox