MediaWiki fundraising/REL1_35
UploadVerifyFileHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
6use UploadBase;
7
27 public function onUploadVerifyFile( $upload, $mime, &$error );
28}
UploadBase and subclasses are the backend of MediaWiki's file uploads.
onUploadVerifyFile( $upload, $mime, &$error)
Use this hook to perform extra file verification, based on MIME type, etc.
Stable for implementing.
$mime
Definition router.php:60