MediaWiki REL1_39
UploadStashFileHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
6use UploadBase;
7use User;
8
36 public function onUploadStashFile( UploadBase $upload, User $user, ?array $props, &$error );
37}
UploadBase and subclasses are the backend of MediaWiki's file uploads.
internal since 1.36
Definition User.php:70
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).