Reply to comment

Worked great. I modified the

Worked great. I modified the first line to add .svg & .jpeg formats:

if (imgName.EndsWith('.gif') || imgName.EndsWith('.jpg') || imgName.EndsWith('.jpeg') || imgName.EndsWith('.png') || imgName.EndsWith('.bmp') || imgName.EndsWith('.svg')) {

& I added these lines to LocalSettings.php, so I could upload these formats:

$wgFileExtensions[] = 'svg';
$wgFileExtensions[] = 'doc';
$wgFileExtensions[] = 'pdf';

Chad von Nau

Reply

CAPTCHA
This question is used to find out out that you are a human and to avoid SPAM.
Image CAPTCHA
Enter the characters shown in the image.