Difference between revisions of "Allow zipfile and 7zip uploads"
From Richard's Wiki
Line 4: | Line 4: | ||
$wgFileExtensions[] = '7z'; | $wgFileExtensions[] = '7z'; | ||
− | This adds ".zip" 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. |
Revision as of 05:57, 13 January 2009
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.