MediaWiki master
UploadStashFileHook.php
Go to the documentation of this file.
1<?php
2
4
8
36 public function onUploadStashFile( UploadBase $upload, User $user, ?array $props, &$error );
37}
38
40class_alias( UploadStashFileHook::class, 'MediaWiki\\Hook\\UploadStashFileHook' );
UploadBase and subclasses are the backend of MediaWiki's file uploads.
User class for the MediaWiki software.
Definition User.php:130
This is a hook handler interface, see docs/Hooks.md.
onUploadStashFile(UploadBase $upload, User $user, ?array $props, &$error)
This hook is called before a file is stashed (uploaded to stash).