Extension:MultiUpload

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
MultiUpload

Release status: stable

Implementation Special page
Description Allows users to upload more than 1 file at time.
Author(s) Travis Derouin
Last Version 1.0 (16th of May, 2008)
MediaWiki 1.11+
License GPL
Download Download snapshot

Subversion [Help]
Browse source code

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.

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] Pre-requisites

This extension was tested with MediaWiki 1.8.2. There might be some problems when there are errors combined with warnings for files submitted.

[edit] Configuration & Installation

require_once("$IP/extensions/MultiUpload/SpecialMultipleUpload.php");
  • If you are using MediaWiki 1.11 (not necessary for 1.12 or later) change the line that calls the UploadComplete hook (around line 447) in includes/SpecialUpload.php from:
 wfRunHooks( 'UploadComplete', array( &$img ) );

to

 wfRunHooks( 'UploadComplete', array( &$this ) );
  • Find a place where you can link to your new extension Special:MultipleUpload (optional)
    • For example, you can add it to the sidebar by editing MediaWiki:Sidebar and adding Special:MultipleUpload|Multi-upload

[edit] Options

  • Configure $wgMaxUploadFiles to determine the number of files accepted at once to upload, found in the SpecialMultipleUpload.php file.

[edit] Bugs and enhancements

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

Personal tools