MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onFileUpload ( $file, $reupload, $hasDescription) | |
This hook is called when a file upload occurs. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "FileUpload" to register handlers implementing this interface.
Definition at line 14 of file FileUploadHook.php.
MediaWiki\Hook\FileUploadHook::onFileUpload | ( | $file, | |
$reupload, | |||
$hasDescription ) |
This hook is called when a file upload occurs.
File | $file | Image object representing the file that was uploaded |
bool | $reupload | Boolean indicating if there was a previously another image there or not (since 1.17) |
bool | $hasDescription | Boolean indicating that there was already a description page and a new one from the comment wasn't created (since 1.17) |
Implemented in MediaWiki\HookContainer\HookRunner.