Manual:Hooks/SpecialUploadComplete

From Linux Web Expert

SpecialUploadComplete
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called after successfully uploading a file from Special:Upload
<translate> Define function:</translate>
public static function onSpecialUploadComplete( $form ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialUploadComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialUploadComplete"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialUpload.php
<translate> Interface:</translate> SpecialUploadCompleteHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialUploadComplete extensions</tvar>.</translate>


Details

  • $form: The UploadForm object