Manual:Hooks/UploadVerifyUpload

Upload verification, based on both file properties like ​MIME type (same as UploadVerifyFile) and the information entered by the user ​(upload comment, file page contents etc.).

Details

 * : An instance of, with all info about the upload
 * : An instance of User, the user uploading this file
 * : File properties, as returned by . Note this is not always guaranteed to be set, e.g. in test scenarios.
 * : Upload log comment, also used as edit summary
 * : File description page text. Only used for new uploads.
 * : If the file upload should be prevented, set this output parameter to the reason in the form of array( messagename, param1, param2, … ) or a instance. You might want to use  to provide machine-readable details for the API.