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": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialUploadComplete"
	}
}
Called from: File(s): specials/SpecialUpload.php
Interface: SpecialUploadCompleteHook.php

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


Details

edit
  • $form: The UploadForm object