Allow zipfile and 7zip uploads

From Richard's Wiki
Revision as of 07:52, 5 November 2011 by Rkdrm (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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'
 ));