Extension:CategoryOnUpload

The CategoryOnUpload extension adds a selection box to the upload page allowing users to choose a category.

Installation

 * Upload the files to the extensions/CategoryOnUpload/ directory within your wiki.
 * Add require_once( "$IP/extensions/CategoryOnUpload/CategoryOnUpload.php" ); to the end of your LocalSettings.php file.
 * Enjoy!

Usage
Select a category from the selection box when uploading a file, the category list will automatically be populated.

Configuration
There are two configuration settings you can set:
 * $wgCategoryOnUploadDefault
 * Specifies the category which will be set by default.


 * $wgCategoryOnUploadAllowNone
 * Allow the user to choose not to use a category, either true or false.

There are also two messages you can may wish to alter:
 * MediaWiki:categoryonupload-label
 * The label for the category selection box, displayed on the upload form.


 * MediaWiki:categoryonupload-none
 * The option text for specifying no category, defaults to a single hyphen.