MediaWiki REL1_35
UploadVerifyUploadHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
6use UploadBase;
7use User;
8
34 public function onUploadVerifyUpload( $upload, $user, $props, $comment,
35 $pageText, &$error
36 );
37}
UploadBase and subclasses are the backend of MediaWiki's file uploads.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
onUploadVerifyUpload( $upload, $user, $props, $comment, $pageText, &$error)
Use this hook to perform upload verification, based on both file properties like MIME type (same as U...
Stable for implementing.