Extension:MultiUpload

From MediaWiki.org

Jump to: navigation, search

               

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
MultiUpload

Release status: beta

MultiUpload Screenshot.png
Implementation  Special page
Description Allows users to upload more than 1 file at time.
Author(s)  Travis Derouin
Last Version  1.02 (20th of April, 2009)
MediaWiki  1.14+
License GPL
Download Download snapshot

Subversion [Help]
Browse source code

check usage (experimental)

The MultiUpload extension allows users to upload more than one file at a time, it tries to reuse as much functionality in Special:Upload as possible.

On April 21st, 2009 bug fixes were submitted to address the issues of overwriting existing files.

Important: To use this extension with MediaWiki 1.11 you have to use revision 29805 or later. To use the extension with earlier versions of MediaWiki, use revision 28586.

Contents

[edit] License

Copyright 2006 Travis Derouin, wikiHow

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

[edit] Author

Travis Derouin (ext @ wikihow.com), wikiHow

[edit] Configuration & Installation

require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
  • Patch SpecialUpload.php. Copy mediawiki-1.14.0.patch to your base mediawiki installation directory and run patch -p0 < mediawiki-1.14.0.patch
  • Optional: Find a place where you can link to your new extension Special:MultipleUpload
    • For example, you can add it to the sidebar by editing MediaWiki:Sidebar and adding a new line ** Special:MultipleUpload|multipleupload ("upload files") or ** Special:MultipleUpload|multiupload-toolbox ("Upload multiple files"). In both cases, 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] Options

  • Configure $wgMaxUploadFiles in your local settings file, to determine the number of files accepted at once to upload. The default setting is 5. The $wgMaxUploadFiles statement must be made after the require_once call. For example:
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] Bugs and enhancements

Bugs or feature requests can be sent to the author at ext @ wikihow.com.