Manual:Hooks/SpecialUploadComplete

From mediawiki.org
Jump to navigation Jump to search
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"
	}
}
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