MediaWiki
fundraising/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 Mon Nov 25 2024 16:15:58 for MediaWiki by
1.10.0