/** * Checks if the mime type of the uploaded file matches the file extension. * * @param string $mime the mime type of the uploaded file * @param string $extension The filename extension that the file is to be served with * @return bool */ function verifyExtension($mime, $extension) { return UploadForm::verifyExtension($mime, $extension); }