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
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