Difference between revisions of "Allow zipfile and 7zip uploads"
From Richard's Wiki
| Line 5: | Line 5: | ||
This adds ".zip" and ".7z" to allowed media: uploads array, as well as retaining the default .png, .gif, .jpg etc. | This adds ".zip" and ".7z" to allowed media: uploads array, as well as retaining the default .png, .gif, .jpg etc. | ||
| + | |||
| + | For version 1.17, had to add the following to LocalSettings.php, to allow zip uploads: | ||
| + | |||
| + | $wgMimeTypeBlacklist = array_diff($wgMimeTypeBlacklist, array( | ||
| + | 'application/zip' | ||
| + | )); | ||
Latest revision as of 06:52, 5 November 2011
Edit LocalSettings.php:
$wgFileExtensions[] = 'zip'; $wgFileExtensions[] = '7z';
This adds ".zip" and ".7z" to allowed media: uploads array, as well as retaining the default .png, .gif, .jpg etc.
For version 1.17, had to add the following to LocalSettings.php, to allow zip uploads:
$wgMimeTypeBlacklist = array_diff($wgMimeTypeBlacklist, array(
'application/zip'
));