MediaWiki master
UploadVerifyFileHook.php
Go to the documentation of this file.
1<?php
2
4
7
30 public function onUploadVerifyFile( $upload, $mime, &$error );
31}
32
34class_alias( UploadVerifyFileHook::class, 'MediaWiki\\Hook\\UploadVerifyFileHook' );
UploadBase and subclasses are the backend of MediaWiki's file uploads.
This is a hook handler interface, see docs/Hooks.md.
onUploadVerifyFile( $upload, $mime, &$error)
Use this hook to perform extra file verification, based on MIME type, etc.