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-1.15
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.

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

  1. Download snapshot
    a. Create a MultiUpload folder in extensions
    b. Add the files to the new MultiUpload folder
  2. Modify LocalSettings.php
    Add this line to your LocalSettings.php file:
    require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
    
    1.16 from http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions
    require_once("$IP/extensions/MultiUpload/MultiUpload.php");
    
  3. Patch SpecialUpload.php. Copy mediawiki-1.14.0.patch to your base mediawiki installation directory and run patch -p0 < mediawiki-1.14.0.patch

[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").[1]

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

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

$wgUploadNavigationUrl = '/index.php?title=Special:MultipleUpload';

[edit] Setting the maximum number of files to upload

require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
$wgMaxUploadFiles = 10;
require_once("$IP/extensions/MultiUpload/MultiUpload.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.

[edit] Notes

  1. 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.
Language: English  • Português do Brasil
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox