First of all, see this page about your specific error message. The problem seems to be triggered by MIME type detection. Try setting $wgVerifyMimeType
to false
and see if it resolves the problem. If it does, you need to reconfigure $wgMimeTypeBlacklist
.
If $wgStrictFileExtensions
is set to true
(and this is the default), only files with extensions listed in $wgFileExtensions
will be allowed (whitelisting).
Just add in LocalSettings.php
:
$wgFileExtensions[] = 'sql';
If that doesn't work, set $wgStrictFileExtensions
to false
temporarily (this can expose you to security risks).
To disable all security checks on files, set $wgCheckFileExtensions
to false.