Extension:CategoryOnUpload

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

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

Some larger wikis may have a lot of categories, in this case an array can be define to limit to specific image categories.

Configuration
There are three configuration settings you can set:
 * $wgCategoryOnUploadDefault
 * Specifies the category which will be set by default. (Default: null)


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


 * $wgCategoryOnUploadList
 * Allow a select list of categories to be defined, rather than all, e.g. image categories (Default: null)

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.