[FOLLOWUP] Clean up 7.2 documentation
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / 7.2 / Feature-66445-AddFileExtensionToMimeTypeMapping.rst
1 ========================================================
2 Feature: #66445 - Add file extension to mimeType mapping
3 ========================================================
4
5 Description
6 ===========
7
8 As a fix for wrong mimeType detection for SVG files without XML prologue we added a new setting to map known file extensions to mimeTypes.
9 The new setting is ``$GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['fileExtensionToMimeType']`` which contains an array:
10
11 .. code-block:: php
12
13 array(
14 'svg' => 'image/svg+xml'
15 )
16
17
18 Impact
19 ======
20
21 The automatic detection for mimeTypes works great, but in some special cases not.
22 This new setting should only be used, if the automatic detection fails.