@@ -146,7 +146,7 @@ public function guessMimeType(string $path): ?string
146
146
/**
147
147
* A map of MIME types and their default extensions.
148
148
*
149
- * Updated from upstream on 2019-01-16
149
+ * Updated from upstream on 2021-09-03
150
150
*
151
151
* @see Resources/bin/update_mime_types.php
152
152
*/
@@ -312,6 +312,7 @@ public function guessMimeType(string $path): ?string
312
312
'application/rss+xml ' => ['rss ' ],
313
313
'application/rtf ' => ['rtf ' ],
314
314
'application/sbml+xml ' => ['sbml ' ],
315
+ 'application/schema+json ' => ['json ' ],
315
316
'application/scvp-cv-request ' => ['scq ' ],
316
317
'application/scvp-cv-response ' => ['scs ' ],
317
318
'application/scvp-vp-request ' => ['spq ' ],
@@ -961,7 +962,7 @@ public function guessMimeType(string $path): ?string
961
962
'application/x-kontour ' => ['kon ' ],
962
963
'application/x-kpovmodeler ' => ['kpm ' ],
963
964
'application/x-kpresenter ' => ['kpr ' , 'kpt ' ],
964
- 'application/x-krita ' => ['kra ' ],
965
+ 'application/x-krita ' => ['kra ' , ' krz ' ],
965
966
'application/x-kspread ' => ['ksp ' ],
966
967
'application/x-kugar ' => ['kud ' ],
967
968
'application/x-kword ' => ['kwd ' , 'kwt ' ],
@@ -1034,7 +1035,7 @@ public function guessMimeType(string $path): ?string
1034
1035
'application/x-nintendo-ds-rom ' => ['nds ' ],
1035
1036
'application/x-ns-proxy-autoconfig ' => ['pac ' ],
1036
1037
'application/x-nzb ' => ['nzb ' ],
1037
- 'application/x-object ' => ['o ' ],
1038
+ 'application/x-object ' => ['o ' , ' mod ' ],
1038
1039
'application/x-ogg ' => ['ogx ' ],
1039
1040
'application/x-oleo ' => ['oleo ' ],
1040
1041
'application/x-pagemaker ' => ['p65 ' , 'pm ' , 'pm6 ' , 'pmd ' ],
@@ -1132,7 +1133,7 @@ public function guessMimeType(string $path): ?string
1132
1133
'application/x-trash ' => ['bak ' , 'old ' , 'sik ' ],
1133
1134
'application/x-trig ' => ['trig ' ],
1134
1135
'application/x-troff ' => ['tr ' , 'roff ' , 't ' ],
1135
- 'application/x-troff-man ' => ['man ' ],
1136
+ 'application/x-troff-man ' => ['man ' , ' [1-9] ' ],
1136
1137
'application/x-tzo ' => ['tar.lzo ' , 'tzo ' ],
1137
1138
'application/x-ufraw ' => ['ufraw ' ],
1138
1139
'application/x-ustar ' => ['ustar ' ],
@@ -1370,6 +1371,7 @@ public function guessMimeType(string $path): ?string
1370
1371
'image/jphc ' => ['jhc ' ],
1371
1372
'image/jpm ' => ['jpm ' , 'jpgm ' ],
1372
1373
'image/jpx ' => ['jpx ' , 'jpf ' ],
1374
+ 'image/jxl ' => ['jxl ' ],
1373
1375
'image/jxr ' => ['jxr ' ],
1374
1376
'image/jxra ' => ['jxra ' ],
1375
1377
'image/jxrs ' => ['jxrs ' ],
@@ -1430,6 +1432,7 @@ public function guessMimeType(string $path): ?string
1430
1432
'image/x-bmp ' => ['bmp ' , 'dib ' ],
1431
1433
'image/x-bzeps ' => ['eps.bz2 ' , 'epsi.bz2 ' , 'epsf.bz2 ' ],
1432
1434
'image/x-canon-cr2 ' => ['cr2 ' ],
1435
+ 'image/x-canon-cr3 ' => ['cr3 ' ],
1433
1436
'image/x-canon-crw ' => ['crw ' ],
1434
1437
'image/x-cdr ' => ['cdr ' ],
1435
1438
'image/x-cmu-raster ' => ['ras ' ],
@@ -1542,6 +1545,7 @@ public function guessMimeType(string $path): ?string
1542
1545
'text/cache-manifest ' => ['appcache ' , 'manifest ' ],
1543
1546
'text/calendar ' => ['ics ' , 'ifb ' , 'vcs ' ],
1544
1547
'text/coffeescript ' => ['coffee ' , 'litcoffee ' ],
1548
+ 'text/crystal ' => ['cr ' ],
1545
1549
'text/css ' => ['css ' ],
1546
1550
'text/csv ' => ['csv ' ],
1547
1551
'text/csv-schema ' => ['csvs ' ],
@@ -1559,6 +1563,7 @@ public function guessMimeType(string $path): ?string
1559
1563
'text/mathml ' => ['mml ' ],
1560
1564
'text/mdx ' => ['mdx ' ],
1561
1565
'text/n3 ' => ['n3 ' ],
1566
+ 'text/org ' => ['org ' ],
1562
1567
'text/plain ' => ['txt ' , 'text ' , 'conf ' , 'def ' , 'list ' , 'log ' , 'in ' , 'ini ' , 'asc ' ],
1563
1568
'text/prs.lines.tag ' => ['dsc ' ],
1564
1569
'text/rdf ' => ['rdf ' , 'rdfs ' , 'owl ' ],
@@ -1610,6 +1615,7 @@ public function guessMimeType(string $path): ?string
1610
1615
'text/x-comma-separated-values ' => ['csv ' ],
1611
1616
'text/x-common-lisp ' => ['asd ' , 'fasl ' , 'lisp ' , 'ros ' ],
1612
1617
'text/x-component ' => ['htc ' ],
1618
+ 'text/x-crystal ' => ['cr ' ],
1613
1619
'text/x-csharp ' => ['cs ' ],
1614
1620
'text/x-csrc ' => ['c ' ],
1615
1621
'text/x-csv ' => ['csv ' ],
@@ -1621,6 +1627,7 @@ public function guessMimeType(string $path): ?string
1621
1627
'text/x-dsrc ' => ['d ' , 'di ' ],
1622
1628
'text/x-dtd ' => ['dtd ' ],
1623
1629
'text/x-eiffel ' => ['e ' , 'eif ' ],
1630
+ 'text/x-elixir ' => ['ex ' , 'exs ' ],
1624
1631
'text/x-emacs-lisp ' => ['el ' ],
1625
1632
'text/x-erlang ' => ['erl ' ],
1626
1633
'text/x-fortran ' => ['f ' , 'for ' , 'f77 ' , 'f90 ' , 'f95 ' ],
@@ -1675,14 +1682,14 @@ public function guessMimeType(string $path): ?string
1675
1682
'text/x-pot ' => ['pot ' ],
1676
1683
'text/x-processing ' => ['pde ' ],
1677
1684
'text/x-python ' => ['py ' , 'pyx ' , 'wsgi ' ],
1678
- 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' ],
1685
+ 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' , ' pyi ' ],
1679
1686
'text/x-qml ' => ['qml ' , 'qmltypes ' , 'qmlproject ' ],
1680
1687
'text/x-reject ' => ['rej ' ],
1681
1688
'text/x-rpm-spec ' => ['spec ' ],
1682
1689
'text/x-rst ' => ['rst ' ],
1683
1690
'text/x-sagemath ' => ['sage ' ],
1684
1691
'text/x-sass ' => ['sass ' ],
1685
- 'text/x-scala ' => ['scala ' ],
1692
+ 'text/x-scala ' => ['scala ' , ' sc ' ],
1686
1693
'text/x-scheme ' => ['scm ' , 'ss ' ],
1687
1694
'text/x-scss ' => ['scss ' ],
1688
1695
'text/x-setext ' => ['etx ' ],
@@ -1827,6 +1834,7 @@ public function guessMimeType(string $path): ?string
1827
1834
'PAR2 ' => ['application/x-par2 ' ],
1828
1835
'PL ' => ['application/x-perl ' , 'text/x-perl ' ],
1829
1836
'Z ' => ['application/x-compress ' ],
1837
+ '[1-9] ' => ['application/x-troff-man ' ],
1830
1838
'a ' => ['application/x-archive ' ],
1831
1839
'a26 ' => ['application/x-atari-2600-rom ' ],
1832
1840
'a78 ' => ['application/x-atari-7800-rom ' ],
@@ -2025,7 +2033,9 @@ public function guessMimeType(string $path): ?string
2025
2033
'cpio.gz ' => ['application/x-cpio-compressed ' ],
2026
2034
'cpp ' => ['text/x-c ' , 'text/x-c++src ' ],
2027
2035
'cpt ' => ['application/mac-compactpro ' ],
2036
+ 'cr ' => ['text/crystal ' , 'text/x-crystal ' ],
2028
2037
'cr2 ' => ['image/x-canon-cr2 ' ],
2038
+ 'cr3 ' => ['image/x-canon-cr3 ' ],
2029
2039
'crd ' => ['application/x-mscardfile ' ],
2030
2040
'crdownload ' => ['application/x-partial-download ' ],
2031
2041
'crl ' => ['application/pkix-crl ' ],
@@ -2164,9 +2174,11 @@ public function guessMimeType(string $path): ?string
2164
2174
'etx ' => ['text/x-setext ' ],
2165
2175
'eva ' => ['application/x-eva ' ],
2166
2176
'evy ' => ['application/x-envoy ' ],
2177
+ 'ex ' => ['text/x-elixir ' ],
2167
2178
'exe ' => ['application/x-ms-dos-executable ' , 'application/x-msdos-program ' , 'application/x-msdownload ' ],
2168
2179
'exi ' => ['application/exi ' ],
2169
2180
'exr ' => ['image/aces ' , 'image/x-exr ' ],
2181
+ 'exs ' => ['text/x-elixir ' ],
2170
2182
'ext ' => ['application/vnd.novadigm.ext ' ],
2171
2183
'ez ' => ['application/andrew-inset ' ],
2172
2184
'ez2 ' => ['application/vnd.ezpix-album ' ],
@@ -2428,12 +2440,13 @@ public function guessMimeType(string $path): ?string
2428
2440
'jrd ' => ['application/jrd+json ' ],
2429
2441
'js ' => ['text/javascript ' , 'application/javascript ' , 'application/x-javascript ' ],
2430
2442
'jsm ' => ['application/javascript ' , 'application/x-javascript ' , 'text/javascript ' ],
2431
- 'json ' => ['application/json ' ],
2443
+ 'json ' => ['application/json ' , ' application/schema+json ' ],
2432
2444
'json-patch ' => ['application/json-patch+json ' ],
2433
2445
'json5 ' => ['application/json5 ' ],
2434
2446
'jsonld ' => ['application/ld+json ' ],
2435
2447
'jsonml ' => ['application/jsonml+json ' ],
2436
2448
'jsx ' => ['text/jsx ' ],
2449
+ 'jxl ' => ['image/jxl ' ],
2437
2450
'jxr ' => ['image/jxr ' ],
2438
2451
'jxra ' => ['image/jxra ' ],
2439
2452
'jxrs ' => ['image/jxrs ' ],
@@ -2468,6 +2481,7 @@ public function guessMimeType(string $path): ?string
2468
2481
'kpt ' => ['application/vnd.kde.kpresenter ' , 'application/x-kpresenter ' ],
2469
2482
'kpxx ' => ['application/vnd.ds-keypoint ' ],
2470
2483
'kra ' => ['application/x-krita ' ],
2484
+ 'krz ' => ['application/x-krita ' ],
2471
2485
'ks ' => ['application/x-java-keystore ' ],
2472
2486
'ksp ' => ['application/vnd.kde.kspread ' , 'application/x-kspread ' ],
2473
2487
'ksy ' => ['text/x-kaitai-struct ' ],
@@ -2611,7 +2625,7 @@ public function guessMimeType(string $path): ?string
2611
2625
'mo3 ' => ['audio/x-mo3 ' ],
2612
2626
'mobi ' => ['application/x-mobipocket-ebook ' ],
2613
2627
'moc ' => ['text/x-moc ' ],
2614
- 'mod ' => ['audio/x-mod ' ],
2628
+ 'mod ' => ['application/x-object ' , ' audio/x-mod ' ],
2615
2629
'mods ' => ['application/mods+xml ' ],
2616
2630
'mof ' => ['text/x-mof ' ],
2617
2631
'moov ' => ['video/quicktime ' ],
@@ -2746,7 +2760,7 @@ public function guessMimeType(string $path): ?string
2746
2760
'opus ' => ['audio/ogg ' , 'audio/x-ogg ' , 'audio/x-opus+ogg ' ],
2747
2761
'ora ' => ['image/openraster ' ],
2748
2762
'orf ' => ['image/x-olympus-orf ' ],
2749
- 'org ' => ['application/vnd.lotus-organizer ' , 'text/x-org ' ],
2763
+ 'org ' => ['application/vnd.lotus-organizer ' , 'text/org ' , ' text/ x-org ' ],
2750
2764
'osf ' => ['application/vnd.yamaha.openscoreformat ' ],
2751
2765
'osfpvg ' => ['application/vnd.yamaha.openscoreformat.osfpvg+xml ' ],
2752
2766
'osm ' => ['application/vnd.openstreetmap.data+xml ' ],
@@ -2891,6 +2905,7 @@ public function guessMimeType(string $path): ?string
2891
2905
'py3x ' => ['text/x-python3 ' ],
2892
2906
'pya ' => ['audio/vnd.ms-playready.media.pya ' ],
2893
2907
'pyc ' => ['application/x-python-bytecode ' ],
2908
+ 'pyi ' => ['text/x-python3 ' ],
2894
2909
'pyo ' => ['application/x-python-bytecode ' ],
2895
2910
'pys ' => ['application/x-pyspread-bz-spreadsheet ' ],
2896
2911
'pysu ' => ['application/x-pyspread-spreadsheet ' ],
@@ -2993,7 +3008,7 @@ public function guessMimeType(string $path): ?string
2993
3008
'sass ' => ['text/x-sass ' ],
2994
3009
'sav ' => ['application/x-spss-sav ' , 'application/x-spss-savefile ' ],
2995
3010
'sbml ' => ['application/sbml+xml ' ],
2996
- 'sc ' => ['application/vnd.ibm.secure-container ' ],
3011
+ 'sc ' => ['application/vnd.ibm.secure-container ' , ' text/x-scala ' ],
2997
3012
'scala ' => ['text/x-scala ' ],
2998
3013
'scd ' => ['application/x-msschedule ' ],
2999
3014
'scm ' => ['application/vnd.lotus-screencam ' , 'text/x-scheme ' ],
0 commit comments