Jump to content

Manual talk:$wgCheckFileExtensions

Add topic
From mediawiki.org
Latest comment: 17 years ago by Gadlen

HELP: What do you need to include after this variable to get MediaWiki to accept all files as uploads? TIA


I put the following just below the pre-existing $wgEnableUploads = true in my LocalSettings.php and it worked. This took much trial and error, I'm not exactly sure why. Gadlen 08:54, 8 December 2006 (UTC)Reply

$wgStrictFileExtensions = false;
$wgCheckFileExtensions = false;
$wgUploadSizeWarning = 8000000;

---

The page says that due to the bug, whether $wgCheckFileExtensions is an override is unclear. But the bug is fixed, so please clarify.