bug #29885 Update MimeType extensions (fabpot)
This PR was merged into the 3.4 branch.
Discussion
----------
Update MimeType extensions
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files -->
| BC breaks? | no <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass? | yes <!-- please add some, will be required by reviewers -->
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
<!--
Write a short README entry for your feature/bugfix here (replace this comment block.)
This will help people understand your PR and can be used as a start of the Doc PR.
Additionally:
- Bug fixes must be submitted against the lowest branch where they apply
(lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the master branch.
-->
Commits
-------
5183049b73
updated MimeType extensions
This commit is contained in:
commit
7789a99968
@ -20,11 +20,11 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
* A map of mime types and their default extensions.
|
* A map of mime types and their default extensions.
|
||||||
*
|
*
|
||||||
* This list has been placed under the public domain by the Apache HTTPD project.
|
* This list has been placed under the public domain by the Apache HTTPD project.
|
||||||
* This list has been updated from upstream on 2013-04-23.
|
* This list has been updated from upstream on 2019-01-14.
|
||||||
*
|
*
|
||||||
* @see http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
* @see https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
|
||||||
*/
|
*/
|
||||||
protected $defaultExtensions = array(
|
protected $defaultExtensions = [
|
||||||
'application/andrew-inset' => 'ez',
|
'application/andrew-inset' => 'ez',
|
||||||
'application/applixware' => 'aw',
|
'application/applixware' => 'aw',
|
||||||
'application/atom+xml' => 'atom',
|
'application/atom+xml' => 'atom',
|
||||||
@ -618,7 +618,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'audio/adpcm' => 'adp',
|
'audio/adpcm' => 'adp',
|
||||||
'audio/basic' => 'au',
|
'audio/basic' => 'au',
|
||||||
'audio/midi' => 'mid',
|
'audio/midi' => 'mid',
|
||||||
'audio/mp4' => 'mp4a',
|
'audio/mp4' => 'm4a',
|
||||||
'audio/mpeg' => 'mpga',
|
'audio/mpeg' => 'mpga',
|
||||||
'audio/ogg' => 'oga',
|
'audio/ogg' => 'oga',
|
||||||
'audio/s3m' => 's3m',
|
'audio/s3m' => 's3m',
|
||||||
@ -653,6 +653,11 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'chemical/x-cml' => 'cml',
|
'chemical/x-cml' => 'cml',
|
||||||
'chemical/x-csml' => 'csml',
|
'chemical/x-csml' => 'csml',
|
||||||
'chemical/x-xyz' => 'xyz',
|
'chemical/x-xyz' => 'xyz',
|
||||||
|
'font/collection' => 'ttc',
|
||||||
|
'font/otf' => 'otf',
|
||||||
|
'font/ttf' => 'ttf',
|
||||||
|
'font/woff' => 'woff',
|
||||||
|
'font/woff2' => 'woff2',
|
||||||
'image/bmp' => 'bmp',
|
'image/bmp' => 'bmp',
|
||||||
'image/x-ms-bmp' => 'bmp',
|
'image/x-ms-bmp' => 'bmp',
|
||||||
'image/cgm' => 'cgm',
|
'image/cgm' => 'cgm',
|
||||||
@ -669,8 +674,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'image/tiff' => 'tiff',
|
'image/tiff' => 'tiff',
|
||||||
'image/vnd.adobe.photoshop' => 'psd',
|
'image/vnd.adobe.photoshop' => 'psd',
|
||||||
'image/vnd.dece.graphic' => 'uvi',
|
'image/vnd.dece.graphic' => 'uvi',
|
||||||
'image/vnd.dvb.subtitle' => 'sub',
|
|
||||||
'image/vnd.djvu' => 'djvu',
|
'image/vnd.djvu' => 'djvu',
|
||||||
|
'image/vnd.dvb.subtitle' => 'sub',
|
||||||
'image/vnd.dwg' => 'dwg',
|
'image/vnd.dwg' => 'dwg',
|
||||||
'image/vnd.dxf' => 'dxf',
|
'image/vnd.dxf' => 'dxf',
|
||||||
'image/vnd.fastbidsheet' => 'fbs',
|
'image/vnd.fastbidsheet' => 'fbs',
|
||||||
@ -732,8 +737,8 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'text/vcard' => 'vcard',
|
'text/vcard' => 'vcard',
|
||||||
'text/vnd.curl' => 'curl',
|
'text/vnd.curl' => 'curl',
|
||||||
'text/vnd.curl.dcurl' => 'dcurl',
|
'text/vnd.curl.dcurl' => 'dcurl',
|
||||||
'text/vnd.curl.scurl' => 'scurl',
|
|
||||||
'text/vnd.curl.mcurl' => 'mcurl',
|
'text/vnd.curl.mcurl' => 'mcurl',
|
||||||
|
'text/vnd.curl.scurl' => 'scurl',
|
||||||
'text/vnd.dvb.subtitle' => 'sub',
|
'text/vnd.dvb.subtitle' => 'sub',
|
||||||
'text/vnd.fly' => 'fly',
|
'text/vnd.fly' => 'fly',
|
||||||
'text/vnd.fmi.flexstor' => 'flx',
|
'text/vnd.fmi.flexstor' => 'flx',
|
||||||
@ -747,10 +752,10 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'text/x-asm' => 's',
|
'text/x-asm' => 's',
|
||||||
'text/x-c' => 'c',
|
'text/x-c' => 'c',
|
||||||
'text/x-fortran' => 'f',
|
'text/x-fortran' => 'f',
|
||||||
'text/x-pascal' => 'p',
|
|
||||||
'text/x-java-source' => 'java',
|
'text/x-java-source' => 'java',
|
||||||
'text/x-opml' => 'opml',
|
|
||||||
'text/x-nfo' => 'nfo',
|
'text/x-nfo' => 'nfo',
|
||||||
|
'text/x-opml' => 'opml',
|
||||||
|
'text/x-pascal' => 'p',
|
||||||
'text/x-setext' => 'etx',
|
'text/x-setext' => 'etx',
|
||||||
'text/x-sfv' => 'sfv',
|
'text/x-sfv' => 'sfv',
|
||||||
'text/x-uuencode' => 'uu',
|
'text/x-uuencode' => 'uu',
|
||||||
@ -796,7 +801,7 @@ class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
|
|||||||
'video/x-sgi-movie' => 'movie',
|
'video/x-sgi-movie' => 'movie',
|
||||||
'video/x-smv' => 'smv',
|
'video/x-smv' => 'smv',
|
||||||
'x-conference/x-cooltalk' => 'ice',
|
'x-conference/x-cooltalk' => 'ice',
|
||||||
);
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
Reference in New Issue
Block a user