Allows uploaded files to be inlined into MediaWiki pages
- Extract and place FileTemplates into your MediaWiki extensions directory
- Add
wfLoadExtension( 'FileTemplates' );
to LocalSettings.php
Configure allowed MIME types:
LocalSettings.php
$wgFileTemplatesAllowedMimeTypes = [
'image/svg+xml',
'...',
'...',
];
Files matching this list can be used by anyone. Make sure files uploaded to your wiki are fully sanitised to prevent XSS and other vulnerabilities