Hello,
I have problems to upload some types of files
LocalSettings.php:
$wgCheckFileExtensions = false;
$wgStrictFileExtensions = false;
$wgVerifyMimeType = false;
$wgFileExtensions = array( '7z', 'zip', 'rar', 'exe',
'gif', 'jpeg',
'jpg', 'png', 'odp', 'ods', 'odt', 'pdf'
);
I could upload 'gif', 'jpg', 'png', 'pdf', 'ods',
'odt' ... etc. but
not 'exe' and some times 'zip'
Every attempt to upload an .exe gives an error
"„.exe“ ist ein nicht erlaubtes Dateiformat. Erlaubt sind die
Dateiformate: 7z, zip, rar, exe, gif, jpeg, jpg, png, odp, ods, odt, pdf."
works:
rac-exe.zip
rac.odt.zip
rac.ods.odt.odt
rac.ods.zip.odt
works *not*:
rac.exe -- reports „.exe“ not allowed
rac.exe.zip -- reports „.zip“ not allowed
rac.ods.exe.odt -- reports „.odt“ not allowed
Why does MW checks extensions if I explicitly say
"$wgCheckFileExtensions = false"?
It seems that a file with an an embedded "exe" part could not be uploaded!
Thanks for any hint,
Peter