MediaWiki
REL1_35
UploadVerifyFileHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MessageSpecifier
;
6
use
UploadBase
;
7
12
interface
UploadVerifyFileHook
{
27
public
function
onUploadVerifyFile
( $upload,
$mime
, &$error );
28
}
UploadBase
UploadBase and subclasses are the backend of MediaWiki's file uploads.
Definition
UploadBase.php:45
MediaWiki\Hook\UploadVerifyFileHook
Stable to implement.
Definition
UploadVerifyFileHook.php:12
MediaWiki\Hook\UploadVerifyFileHook\onUploadVerifyFile
onUploadVerifyFile( $upload, $mime, &$error)
Use this hook to perform extra file verification, based on MIME type, etc.
MessageSpecifier
Stable for implementing.
Definition
MessageSpecifier.php:24
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
$mime
$mime
Definition
router.php:60
includes
upload
Hook
UploadVerifyFileHook.php
Generated on Sat Apr 6 2024 00:08:04 for MediaWiki by
1.9.8