MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onUploadForm_BeforeProcessing ( $upload) | |
This hook is called at the beginning of processUpload(). | |
Stable to implement.
Definition at line 12 of file UploadForm_BeforeProcessingHook.php.
MediaWiki\Hook\UploadForm_BeforeProcessingHook::onUploadForm_BeforeProcessing | ( | $upload | ) |
This hook is called at the beginning of processUpload().
Lets you poke at member variables like $mUploadDescription before the file is saved. Do not use this hook to break upload processing. This will return the user to a blank form with no error message; use UploadVerifyUpload or UploadVerifyFile instead.
SpecialUpload | $upload |
Implemented in MediaWiki\HookContainer\HookRunner.