Xml upload

Revision as of 11:52, 29 November 2023 by Margit Link-Rodrigue (talk | contribs) (Created page with "{{Textbox|boxtype=important|header=XML file type:{{Bsvs|bsvFrom=4.x+}}|text=The ''xml'' file type is blacklisted since MW 1.39 and has to be allowed in ''LocalSettings.php'': <pre> $GLOBALS['wgProhibitedFileExtensions'] = array_diff( $GLOBALS['wgProhibitedFileExtensions'] ?? [], [ 'xml' ] ); $GLOBALS['wgMimeTypeExclusions'] = array_diff( $GLOBALS['wgMimeTypeExclusions'] ?? [], [ 'application/xml', 'text/xml' ] ); </pre>|icon=no}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
XML file type:  v4.x++The xml file type is blacklisted since MW 1.39 and has to be allowed in LocalSettings.php:
$GLOBALS['wgProhibitedFileExtensions'] = array_diff( $GLOBALS['wgProhibitedFileExtensions'] ?? [], [ 'xml' ] );
$GLOBALS['wgMimeTypeExclusions'] = array_diff( $GLOBALS['wgMimeTypeExclusions'] ?? [], [ 'application/xml', 'text/xml' ] );
No categories assignedEdit

Discussions