dear all,
i am trying to carry out some custom checks before uploading a file in mediawiki. i face the challenge that i cannot pass my own error messages to the visualeditor upload form. whatever error message i declare in the onVerifyFileUpload hook gets displayed in VE asĀ This file did not pass file verification. my error message that i declare in the hook 'gets aggregated' in UploadFromChunks.php:201. ($this->getVerificationErrorCode())
i also tried other hooks to intercept/manipulate the error but to no avail (ApiMain::onException,APIGetAllowedParams, APIAfterExecute).
i use mediawiki 1.32.2.
is there a way i did not think of to display a custom error message in my case?
thank you and kind regards,
tom