Extension:UploadWizard

The UploadWizard extension allows a user to upload multiple files with a step-by-step JavaScript wizard. It was originally designed by Guillaume Paumier as part of the Multimedia usability project and developed by Neil Kandalgaonkar, and has evolved since then.

See also: Upload Wizard description page on Wikimedia Commons

Enabling uploads and thumbnails
Your MediaWiki will need to be capable of hosting media files and creating thumbnails (smaller previews of media files). If you can upload images and see smaller previews on their File page, you're already ready. If not, for full instructions, see, particularly.

Quick start for GNU/Linux or Mac OS X users: You also need to change the following core configuration variable.
 * Make sure that the images directory is writable by your web server.
 * Install the ImageMagick libraries and binaries.
 * Add the following configuration to LocalSettings.php:

You should also install the EventLogging extension. This is used only if you use the campaigns feature, and should be made a soft dependency at some point in the future.

Enabling Flickr uploads
You can also use UploadWizard to transfer files directly from Flickr. To enable this option, first you'll need to get an API key from Flickr:
 * 1) Go to http://www.flickr.com/services/api/
 * 2) Click on API Keys
 * 3) Log in with your Yahoo/Flickr username and password
 * 4) Sign up for a key

Once you have a key, add the following to your LocalSettings.php:

You may also want to limit the upload domains specifically to Flickr:

Updating from versions before 07/2013
The following is essentially important if you made use of the Campaign feature:
 * Update MediaWiki core to version 1.22 or later
 * Check your custom configuration against the new default config. Parameters like automatically added categories changed (  →  ).
 * Install Extension:EventLogging.
 * Run

Other configuration
This modifies the sidebar's "Upload file" link - probably in other places as well. More at Manual:$wgUploadNavigationUrl.
 * You need to have InstantCommons enabled in order to access the licensing tutorial. To enable InstantCommons add  to LocalSettings.php.
 * You may want to set  in LocalSettings.php, where /wiki/ is the correct path for your wiki. A more general way of doing this that works for whatever path configuration you have, but that requires PHP 5.3 or later is:

Several other options are available through a configuration array. For example: This is just an example configuration setting. See the file (starting around line 60) for many more options to the   array.

URL arguments
There are several url arguments that can be specified to alter the behaviour of the UploadWizard:


 * campaign: Specifies which upload campaign to use.
 * id: Sets the initial value for the id field.
 * description: Sets the initial value for the description field.
 * lat: Sets the initial value for the latitude field.
 * lon: Sets the initial value for the longitude field.
 * alt: Sets the initial value for the altitude field.
 * categories: Sets the initial value for the categories field, multiple categories seperated by |.
 * fields: The initial value of additional fields defined by a campaign. Values of multiple fields must be passed in the exact same order as defined in the campaign.
 * (e. g.  to the url. For example   or.

Object references
Upload Wizard provides a way to store “object references” - references to list templates in Wiki pages - in the file description page. These may be used by bots to insert a thumbnail image into a list page. A bot that is doing this for monument lists of German Wikipedia is running on tool labs. Its code is hosted on GitHub. Though its purpose is to update monument lists on Wikipedia it can be adopted to serve in different scenarios.

This feature uses the parameters

Here's a Bash script that should make it easier to do all of this without much trouble. It's a good idea to put this in your PATH and/or make a handy shortcut to it somewhere that will make it trivial to update your images with new ones.

Templates
WARNING: This list is not complete and more templates are required, otherwise you will end with SCRIPT error or other error messages not in English!

Upload Wizard will insert a few templates into generated file description pages, which need to exist on the wiki in order for the description pages to be rendered correctly. The templates used include:


 * the "Information" template (you could use mediawiki's export tool to import this template into your own installation of mediawiki)
 * Description language identifiers like Template:En, if none are defined, then only is used.
 * Various licensing tags (which are configurable)
 * the Location template for geocoordinates
 * (Optionally) a template to indicate that a file is uncategorized

Development status
While we feel that this is ready for others to use, so far, this extension has mostly been used only on Wikimedia wikis. We'd like to get reports from other MediaWiki installations as well.

Related specs

 * Custom WikiText License Feature
 * Location (entering gps coordinates / deriving them from EXIF)