MediaWiki:Config-upload-help/en

File uploads potentially expose your server to security risks. For more information, read the [//www.mediawiki.org/wiki/Special:MyLanguage/Manual:Security security section] in the manual.

To enable file uploads, change the mode on the  subdirectory under MediaWiki's root directory so that the web server can write to it. Then enable this option.