Difference between revisions of "Allow zipfile and 7zip uploads"

From Richard's Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
   $wgFileExtensions[] = 'zip';
 
   $wgFileExtensions[] = 'zip';
 +
  $wgFileExtensions[] = '7z';
  
 
This adds ".zip" to allowed media: uploads array, as well as retaining the default .png, .gif, .jpg etc.
 
This adds ".zip" 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" to allowed media: uploads array, as well as retaining the default .png, .gif, .jpg etc.