Minor: update set_error message

This commit is contained in:
billz 2022-01-01 00:35:15 +00:00
parent 669efe4d8c
commit 78e56ecf88

View file

@ -338,7 +338,7 @@ class Upload
{
if (!empty($object->mimes)) {
if (!in_array($object->file['mime'], $object->mimes)) {
$object->set_error('Mime type not allowed.');
$object->set_error('MIME type not allowed.');
}
}
}