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