I cannot upload ".epub" files on a wiki that's configured to permit them. To reproduce:
Tell LocalSettings.php to permit uploads of zip and epub files:
$wgFileExtensions[] = 'epub'; $wgFileExtensions[] = 'zip';
Then visit Special:Upload, make sure the checkbox Ignore any warnings is CHECKED, and attempt to upload an epub file.
The file does not upload, and I get the warning: File extension ".epub" does not match the detected MIME type of the file (application/zip). This is unexpected behavior because the file types are permitted for upload and the "ignore warnings" checkbox is checked.
Version info:
- MediaWiki 1.34.1
- PHP 7.2.24-0ubuntu0.18.04.4 (apache2handler)
- MySQL 5.7.30-0ubuntu0.18.04.1
- ICU 60.2