MediaWiki
REL1_37
UploadVerifyFileHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MessageSpecifier
;
6
use
UploadBase
;
7
15
interface
UploadVerifyFileHook
{
30
public
function
onUploadVerifyFile
( $upload,
$mime
, &$error );
31
}
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:47
MediaWiki\Hook\UploadVerifyFileHook
This is a hook handler interface, see docs/Hooks.md.
Definition
UploadVerifyFileHook.php:15
MediaWiki\Hook\UploadVerifyFileHook\onUploadVerifyFile
onUploadVerifyFile( $upload, $mime, &$error)
Use this hook to perform extra file verification, based on MIME type, etc.
MessageSpecifier
Definition
MessageSpecifier.php:24
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
$mime
$mime
Definition
router.php:60
includes
upload
Hook
UploadVerifyFileHook.php
Generated on Fri Apr 5 2024 23:41:03 for MediaWiki by
1.9.8