MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onFileUpload ( $file, $reupload, $hasDescription) | |
This hook is called when a file upload occurs. | |
Stable to implement.
Definition at line 11 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.