Open main menu

Manual:Hooks/SpecialUploadComplete

SpecialUploadComplete
Available from version 1.16.0
Called after successfully uploading a file from Special:Upload
Define function:
public static function onSpecialUploadComplete( $form ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialUploadComplete": "MyExtensionHooks::onSpecialUploadComplete"
	}
}

For MediaWiki ≤1.25:

$wgHooks['SpecialUploadComplete'][] = 'MyExtensionHooks::onSpecialUploadComplete';
Called from:File(s): specials/SpecialUpload.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialUploadComplete extensions.

DetailsEdit

  • $form: The UploadForm object