@@ -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 ' ],
@@ -545,6 +546,7 @@ public function guessMimeType(string $path): ?string
545
546
'application/vnd.lotus-screencam ' => ['scm ' ],
546
547
'application/vnd.lotus-wordpro ' => ['lwp ' ],
547
548
'application/vnd.macports.portpkg ' => ['portpkg ' ],
549
+ 'application/vnd.mapbox-vector-tile ' => ['mvt ' ],
548
550
'application/vnd.mcd ' => ['mcd ' ],
549
551
'application/vnd.medcalcdata ' => ['mc1 ' ],
550
552
'application/vnd.mediastation.cdkey ' => ['cdkey ' ],
@@ -961,7 +963,7 @@ public function guessMimeType(string $path): ?string
961
963
'application/x-kontour ' => ['kon ' ],
962
964
'application/x-kpovmodeler ' => ['kpm ' ],
963
965
'application/x-kpresenter ' => ['kpr ' , 'kpt ' ],
964
- 'application/x-krita ' => ['kra ' ],
966
+ 'application/x-krita ' => ['kra ' , ' krz ' ],
965
967
'application/x-kspread ' => ['ksp ' ],
966
968
'application/x-kugar ' => ['kud ' ],
967
969
'application/x-kword ' => ['kwd ' , 'kwt ' ],
@@ -1034,7 +1036,7 @@ public function guessMimeType(string $path): ?string
1034
1036
'application/x-nintendo-ds-rom ' => ['nds ' ],
1035
1037
'application/x-ns-proxy-autoconfig ' => ['pac ' ],
1036
1038
'application/x-nzb ' => ['nzb ' ],
1037
- 'application/x-object ' => ['o ' ],
1039
+ 'application/x-object ' => ['o ' , ' mod ' ],
1038
1040
'application/x-ogg ' => ['ogx ' ],
1039
1041
'application/x-oleo ' => ['oleo ' ],
1040
1042
'application/x-pagemaker ' => ['p65 ' , 'pm ' , 'pm6 ' , 'pmd ' ],
@@ -1370,6 +1372,7 @@ public function guessMimeType(string $path): ?string
1370
1372
'image/jphc ' => ['jhc ' ],
1371
1373
'image/jpm ' => ['jpm ' , 'jpgm ' ],
1372
1374
'image/jpx ' => ['jpx ' , 'jpf ' ],
1375
+ 'image/jxl ' => ['jxl ' ],
1373
1376
'image/jxr ' => ['jxr ' ],
1374
1377
'image/jxra ' => ['jxra ' ],
1375
1378
'image/jxrs ' => ['jxrs ' ],
@@ -1430,6 +1433,7 @@ public function guessMimeType(string $path): ?string
1430
1433
'image/x-bmp ' => ['bmp ' , 'dib ' ],
1431
1434
'image/x-bzeps ' => ['eps.bz2 ' , 'epsi.bz2 ' , 'epsf.bz2 ' ],
1432
1435
'image/x-canon-cr2 ' => ['cr2 ' ],
1436
+ 'image/x-canon-cr3 ' => ['cr3 ' ],
1433
1437
'image/x-canon-crw ' => ['crw ' ],
1434
1438
'image/x-cdr ' => ['cdr ' ],
1435
1439
'image/x-cmu-raster ' => ['ras ' ],
@@ -1518,6 +1522,8 @@ public function guessMimeType(string $path): ?string
1518
1522
'model/mesh ' => ['msh ' , 'mesh ' , 'silo ' ],
1519
1523
'model/mtl ' => ['mtl ' ],
1520
1524
'model/obj ' => ['obj ' ],
1525
+ 'model/step+zip ' => ['stpz ' ],
1526
+ 'model/step-xml+zip ' => ['stpxz ' ],
1521
1527
'model/stl ' => ['stl ' ],
1522
1528
'model/vnd.collada+xml ' => ['dae ' ],
1523
1529
'model/vnd.dwf ' => ['dwf ' ],
@@ -1542,6 +1548,7 @@ public function guessMimeType(string $path): ?string
1542
1548
'text/cache-manifest ' => ['appcache ' , 'manifest ' ],
1543
1549
'text/calendar ' => ['ics ' , 'ifb ' , 'vcs ' ],
1544
1550
'text/coffeescript ' => ['coffee ' , 'litcoffee ' ],
1551
+ 'text/crystal ' => ['cr ' ],
1545
1552
'text/css ' => ['css ' ],
1546
1553
'text/csv ' => ['csv ' ],
1547
1554
'text/csv-schema ' => ['csvs ' ],
@@ -1559,6 +1566,7 @@ public function guessMimeType(string $path): ?string
1559
1566
'text/mathml ' => ['mml ' ],
1560
1567
'text/mdx ' => ['mdx ' ],
1561
1568
'text/n3 ' => ['n3 ' ],
1569
+ 'text/org ' => ['org ' ],
1562
1570
'text/plain ' => ['txt ' , 'text ' , 'conf ' , 'def ' , 'list ' , 'log ' , 'in ' , 'ini ' , 'asc ' ],
1563
1571
'text/prs.lines.tag ' => ['dsc ' ],
1564
1572
'text/rdf ' => ['rdf ' , 'rdfs ' , 'owl ' ],
@@ -1610,6 +1618,7 @@ public function guessMimeType(string $path): ?string
1610
1618
'text/x-comma-separated-values ' => ['csv ' ],
1611
1619
'text/x-common-lisp ' => ['asd ' , 'fasl ' , 'lisp ' , 'ros ' ],
1612
1620
'text/x-component ' => ['htc ' ],
1621
+ 'text/x-crystal ' => ['cr ' ],
1613
1622
'text/x-csharp ' => ['cs ' ],
1614
1623
'text/x-csrc ' => ['c ' ],
1615
1624
'text/x-csv ' => ['csv ' ],
@@ -1621,6 +1630,7 @@ public function guessMimeType(string $path): ?string
1621
1630
'text/x-dsrc ' => ['d ' , 'di ' ],
1622
1631
'text/x-dtd ' => ['dtd ' ],
1623
1632
'text/x-eiffel ' => ['e ' , 'eif ' ],
1633
+ 'text/x-elixir ' => ['ex ' , 'exs ' ],
1624
1634
'text/x-emacs-lisp ' => ['el ' ],
1625
1635
'text/x-erlang ' => ['erl ' ],
1626
1636
'text/x-fortran ' => ['f ' , 'for ' , 'f77 ' , 'f90 ' , 'f95 ' ],
@@ -1675,14 +1685,14 @@ public function guessMimeType(string $path): ?string
1675
1685
'text/x-pot ' => ['pot ' ],
1676
1686
'text/x-processing ' => ['pde ' ],
1677
1687
'text/x-python ' => ['py ' , 'pyx ' , 'wsgi ' ],
1678
- 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' ],
1688
+ 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' , ' pyi ' ],
1679
1689
'text/x-qml ' => ['qml ' , 'qmltypes ' , 'qmlproject ' ],
1680
1690
'text/x-reject ' => ['rej ' ],
1681
1691
'text/x-rpm-spec ' => ['spec ' ],
1682
1692
'text/x-rst ' => ['rst ' ],
1683
1693
'text/x-sagemath ' => ['sage ' ],
1684
1694
'text/x-sass ' => ['sass ' ],
1685
- 'text/x-scala ' => ['scala ' ],
1695
+ 'text/x-scala ' => ['scala ' , ' sc ' ],
1686
1696
'text/x-scheme ' => ['scm ' , 'ss ' ],
1687
1697
'text/x-scss ' => ['scss ' ],
1688
1698
'text/x-setext ' => ['etx ' ],
@@ -2025,7 +2035,9 @@ public function guessMimeType(string $path): ?string
2025
2035
'cpio.gz ' => ['application/x-cpio-compressed ' ],
2026
2036
'cpp ' => ['text/x-c ' , 'text/x-c++src ' ],
2027
2037
'cpt ' => ['application/mac-compactpro ' ],
2038
+ 'cr ' => ['text/crystal ' , 'text/x-crystal ' ],
2028
2039
'cr2 ' => ['image/x-canon-cr2 ' ],
2040
+ 'cr3 ' => ['image/x-canon-cr3 ' ],
2029
2041
'crd ' => ['application/x-mscardfile ' ],
2030
2042
'crdownload ' => ['application/x-partial-download ' ],
2031
2043
'crl ' => ['application/pkix-crl ' ],
@@ -2164,9 +2176,11 @@ public function guessMimeType(string $path): ?string
2164
2176
'etx ' => ['text/x-setext ' ],
2165
2177
'eva ' => ['application/x-eva ' ],
2166
2178
'evy ' => ['application/x-envoy ' ],
2179
+ 'ex ' => ['text/x-elixir ' ],
2167
2180
'exe ' => ['application/x-ms-dos-executable ' , 'application/x-msdos-program ' , 'application/x-msdownload ' ],
2168
2181
'exi ' => ['application/exi ' ],
2169
2182
'exr ' => ['image/aces ' , 'image/x-exr ' ],
2183
+ 'exs ' => ['text/x-elixir ' ],
2170
2184
'ext ' => ['application/vnd.novadigm.ext ' ],
2171
2185
'ez ' => ['application/andrew-inset ' ],
2172
2186
'ez2 ' => ['application/vnd.ezpix-album ' ],
@@ -2428,12 +2442,13 @@ public function guessMimeType(string $path): ?string
2428
2442
'jrd ' => ['application/jrd+json ' ],
2429
2443
'js ' => ['text/javascript ' , 'application/javascript ' , 'application/x-javascript ' ],
2430
2444
'jsm ' => ['application/javascript ' , 'application/x-javascript ' , 'text/javascript ' ],
2431
- 'json ' => ['application/json ' ],
2445
+ 'json ' => ['application/json ' , ' application/schema+json ' ],
2432
2446
'json-patch ' => ['application/json-patch+json ' ],
2433
2447
'json5 ' => ['application/json5 ' ],
2434
2448
'jsonld ' => ['application/ld+json ' ],
2435
2449
'jsonml ' => ['application/jsonml+json ' ],
2436
2450
'jsx ' => ['text/jsx ' ],
2451
+ 'jxl ' => ['image/jxl ' ],
2437
2452
'jxr ' => ['image/jxr ' ],
2438
2453
'jxra ' => ['image/jxra ' ],
2439
2454
'jxrs ' => ['image/jxrs ' ],
@@ -2468,6 +2483,7 @@ public function guessMimeType(string $path): ?string
2468
2483
'kpt ' => ['application/vnd.kde.kpresenter ' , 'application/x-kpresenter ' ],
2469
2484
'kpxx ' => ['application/vnd.ds-keypoint ' ],
2470
2485
'kra ' => ['application/x-krita ' ],
2486
+ 'krz ' => ['application/x-krita ' ],
2471
2487
'ks ' => ['application/x-java-keystore ' ],
2472
2488
'ksp ' => ['application/vnd.kde.kspread ' , 'application/x-kspread ' ],
2473
2489
'ksy ' => ['text/x-kaitai-struct ' ],
@@ -2611,7 +2627,7 @@ public function guessMimeType(string $path): ?string
2611
2627
'mo3 ' => ['audio/x-mo3 ' ],
2612
2628
'mobi ' => ['application/x-mobipocket-ebook ' ],
2613
2629
'moc ' => ['text/x-moc ' ],
2614
- 'mod ' => ['audio/x-mod ' ],
2630
+ 'mod ' => ['application/x-object ' , ' audio/x-mod ' ],
2615
2631
'mods ' => ['application/mods+xml ' ],
2616
2632
'mof ' => ['text/x-mof ' ],
2617
2633
'moov ' => ['video/quicktime ' ],
@@ -2668,6 +2684,7 @@ public function guessMimeType(string $path): ?string
2668
2684
'musd ' => ['application/mmt-usd+xml ' ],
2669
2685
'musicxml ' => ['application/vnd.recordare.musicxml+xml ' ],
2670
2686
'mvb ' => ['application/x-msmediaview ' ],
2687
+ 'mvt ' => ['application/vnd.mapbox-vector-tile ' ],
2671
2688
'mwf ' => ['application/vnd.mfer ' ],
2672
2689
'mxf ' => ['application/mxf ' ],
2673
2690
'mxl ' => ['application/vnd.recordare.musicxml ' ],
@@ -2746,7 +2763,7 @@ public function guessMimeType(string $path): ?string
2746
2763
'opus ' => ['audio/ogg ' , 'audio/x-ogg ' , 'audio/x-opus+ogg ' ],
2747
2764
'ora ' => ['image/openraster ' ],
2748
2765
'orf ' => ['image/x-olympus-orf ' ],
2749
- 'org ' => ['application/vnd.lotus-organizer ' , 'text/x-org ' ],
2766
+ 'org ' => ['application/vnd.lotus-organizer ' , 'text/org ' , ' text/ x-org ' ],
2750
2767
'osf ' => ['application/vnd.yamaha.openscoreformat ' ],
2751
2768
'osfpvg ' => ['application/vnd.yamaha.openscoreformat.osfpvg+xml ' ],
2752
2769
'osm ' => ['application/vnd.openstreetmap.data+xml ' ],
@@ -2891,6 +2908,7 @@ public function guessMimeType(string $path): ?string
2891
2908
'py3x ' => ['text/x-python3 ' ],
2892
2909
'pya ' => ['audio/vnd.ms-playready.media.pya ' ],
2893
2910
'pyc ' => ['application/x-python-bytecode ' ],
2911
+ 'pyi ' => ['text/x-python3 ' ],
2894
2912
'pyo ' => ['application/x-python-bytecode ' ],
2895
2913
'pys ' => ['application/x-pyspread-bz-spreadsheet ' ],
2896
2914
'pysu ' => ['application/x-pyspread-spreadsheet ' ],
@@ -2993,7 +3011,7 @@ public function guessMimeType(string $path): ?string
2993
3011
'sass ' => ['text/x-sass ' ],
2994
3012
'sav ' => ['application/x-spss-sav ' , 'application/x-spss-savefile ' ],
2995
3013
'sbml ' => ['application/sbml+xml ' ],
2996
- 'sc ' => ['application/vnd.ibm.secure-container ' ],
3014
+ 'sc ' => ['application/vnd.ibm.secure-container ' , ' text/x-scala ' ],
2997
3015
'scala ' => ['text/x-scala ' ],
2998
3016
'scd ' => ['application/x-msschedule ' ],
2999
3017
'scm ' => ['application/vnd.lotus-screencam ' , 'text/x-scheme ' ],
@@ -3121,6 +3139,8 @@ public function guessMimeType(string $path): ?string
3121
3139
'stk ' => ['application/hyperstudio ' ],
3122
3140
'stl ' => ['application/vnd.ms-pki.stl ' , 'model/stl ' , 'model/x.stl-ascii ' , 'model/x.stl-binary ' ],
3123
3141
'stm ' => ['audio/x-stm ' ],
3142
+ 'stpxz ' => ['model/step-xml+zip ' ],
3143
+ 'stpz ' => ['model/step+zip ' ],
3124
3144
'str ' => ['application/vnd.pg.format ' ],
3125
3145
'stw ' => ['application/vnd.sun.xml.writer.template ' ],
3126
3146
'sty ' => ['application/x-tex ' , 'text/x-tex ' ],
0 commit comments