@@ -146,7 +146,7 @@ public function guessMimeType(string $path): ?string
146146 /**
147147 * A map of MIME types and their default extensions.
148148 *
149- * Updated from upstream on 2019-01-16
149+ * Updated from upstream on 2021-09-03
150150 *
151151 * @see Resources/bin/update_mime_types.php
152152 */
@@ -312,6 +312,7 @@ public function guessMimeType(string $path): ?string
312312 'application/rss+xml ' => ['rss ' ],
313313 'application/rtf ' => ['rtf ' ],
314314 'application/sbml+xml ' => ['sbml ' ],
315+ 'application/schema+json ' => ['json ' ],
315316 'application/scvp-cv-request ' => ['scq ' ],
316317 'application/scvp-cv-response ' => ['scs ' ],
317318 'application/scvp-vp-request ' => ['spq ' ],
@@ -961,7 +962,7 @@ public function guessMimeType(string $path): ?string
961962 'application/x-kontour ' => ['kon ' ],
962963 'application/x-kpovmodeler ' => ['kpm ' ],
963964 'application/x-kpresenter ' => ['kpr ' , 'kpt ' ],
964- 'application/x-krita ' => ['kra ' ],
965+ 'application/x-krita ' => ['kra ' , ' krz ' ],
965966 'application/x-kspread ' => ['ksp ' ],
966967 'application/x-kugar ' => ['kud ' ],
967968 'application/x-kword ' => ['kwd ' , 'kwt ' ],
@@ -1034,7 +1035,7 @@ public function guessMimeType(string $path): ?string
10341035 'application/x-nintendo-ds-rom ' => ['nds ' ],
10351036 'application/x-ns-proxy-autoconfig ' => ['pac ' ],
10361037 'application/x-nzb ' => ['nzb ' ],
1037- 'application/x-object ' => ['o ' ],
1038+ 'application/x-object ' => ['o ' , ' mod ' ],
10381039 'application/x-ogg ' => ['ogx ' ],
10391040 'application/x-oleo ' => ['oleo ' ],
10401041 'application/x-pagemaker ' => ['p65 ' , 'pm ' , 'pm6 ' , 'pmd ' ],
@@ -1132,7 +1133,7 @@ public function guessMimeType(string $path): ?string
11321133 'application/x-trash ' => ['bak ' , 'old ' , 'sik ' ],
11331134 'application/x-trig ' => ['trig ' ],
11341135 'application/x-troff ' => ['tr ' , 'roff ' , 't ' ],
1135- 'application/x-troff-man ' => ['man ' ],
1136+ 'application/x-troff-man ' => ['man ' , ' [1-9] ' ],
11361137 'application/x-tzo ' => ['tar.lzo ' , 'tzo ' ],
11371138 'application/x-ufraw ' => ['ufraw ' ],
11381139 'application/x-ustar ' => ['ustar ' ],
@@ -1370,6 +1371,7 @@ public function guessMimeType(string $path): ?string
13701371 'image/jphc ' => ['jhc ' ],
13711372 'image/jpm ' => ['jpm ' , 'jpgm ' ],
13721373 'image/jpx ' => ['jpx ' , 'jpf ' ],
1374+ 'image/jxl ' => ['jxl ' ],
13731375 'image/jxr ' => ['jxr ' ],
13741376 'image/jxra ' => ['jxra ' ],
13751377 'image/jxrs ' => ['jxrs ' ],
@@ -1430,6 +1432,7 @@ public function guessMimeType(string $path): ?string
14301432 'image/x-bmp ' => ['bmp ' , 'dib ' ],
14311433 'image/x-bzeps ' => ['eps.bz2 ' , 'epsi.bz2 ' , 'epsf.bz2 ' ],
14321434 'image/x-canon-cr2 ' => ['cr2 ' ],
1435+ 'image/x-canon-cr3 ' => ['cr3 ' ],
14331436 'image/x-canon-crw ' => ['crw ' ],
14341437 'image/x-cdr ' => ['cdr ' ],
14351438 'image/x-cmu-raster ' => ['ras ' ],
@@ -1542,6 +1545,7 @@ public function guessMimeType(string $path): ?string
15421545 'text/cache-manifest ' => ['appcache ' , 'manifest ' ],
15431546 'text/calendar ' => ['ics ' , 'ifb ' , 'vcs ' ],
15441547 'text/coffeescript ' => ['coffee ' , 'litcoffee ' ],
1548+ 'text/crystal ' => ['cr ' ],
15451549 'text/css ' => ['css ' ],
15461550 'text/csv ' => ['csv ' ],
15471551 'text/csv-schema ' => ['csvs ' ],
@@ -1559,6 +1563,7 @@ public function guessMimeType(string $path): ?string
15591563 'text/mathml ' => ['mml ' ],
15601564 'text/mdx ' => ['mdx ' ],
15611565 'text/n3 ' => ['n3 ' ],
1566+ 'text/org ' => ['org ' ],
15621567 'text/plain ' => ['txt ' , 'text ' , 'conf ' , 'def ' , 'list ' , 'log ' , 'in ' , 'ini ' , 'asc ' ],
15631568 'text/prs.lines.tag ' => ['dsc ' ],
15641569 'text/rdf ' => ['rdf ' , 'rdfs ' , 'owl ' ],
@@ -1610,6 +1615,7 @@ public function guessMimeType(string $path): ?string
16101615 'text/x-comma-separated-values ' => ['csv ' ],
16111616 'text/x-common-lisp ' => ['asd ' , 'fasl ' , 'lisp ' , 'ros ' ],
16121617 'text/x-component ' => ['htc ' ],
1618+ 'text/x-crystal ' => ['cr ' ],
16131619 'text/x-csharp ' => ['cs ' ],
16141620 'text/x-csrc ' => ['c ' ],
16151621 'text/x-csv ' => ['csv ' ],
@@ -1621,6 +1627,7 @@ public function guessMimeType(string $path): ?string
16211627 'text/x-dsrc ' => ['d ' , 'di ' ],
16221628 'text/x-dtd ' => ['dtd ' ],
16231629 'text/x-eiffel ' => ['e ' , 'eif ' ],
1630+ 'text/x-elixir ' => ['ex ' , 'exs ' ],
16241631 'text/x-emacs-lisp ' => ['el ' ],
16251632 'text/x-erlang ' => ['erl ' ],
16261633 'text/x-fortran ' => ['f ' , 'for ' , 'f77 ' , 'f90 ' , 'f95 ' ],
@@ -1675,14 +1682,14 @@ public function guessMimeType(string $path): ?string
16751682 'text/x-pot ' => ['pot ' ],
16761683 'text/x-processing ' => ['pde ' ],
16771684 'text/x-python ' => ['py ' , 'pyx ' , 'wsgi ' ],
1678- 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' ],
1685+ 'text/x-python3 ' => ['py ' , 'py3 ' , 'py3x ' , ' pyi ' ],
16791686 'text/x-qml ' => ['qml ' , 'qmltypes ' , 'qmlproject ' ],
16801687 'text/x-reject ' => ['rej ' ],
16811688 'text/x-rpm-spec ' => ['spec ' ],
16821689 'text/x-rst ' => ['rst ' ],
16831690 'text/x-sagemath ' => ['sage ' ],
16841691 'text/x-sass ' => ['sass ' ],
1685- 'text/x-scala ' => ['scala ' ],
1692+ 'text/x-scala ' => ['scala ' , ' sc ' ],
16861693 'text/x-scheme ' => ['scm ' , 'ss ' ],
16871694 'text/x-scss ' => ['scss ' ],
16881695 'text/x-setext ' => ['etx ' ],
@@ -1827,6 +1834,7 @@ public function guessMimeType(string $path): ?string
18271834 'PAR2 ' => ['application/x-par2 ' ],
18281835 'PL ' => ['application/x-perl ' , 'text/x-perl ' ],
18291836 'Z ' => ['application/x-compress ' ],
1837+ '[1-9] ' => ['application/x-troff-man ' ],
18301838 'a ' => ['application/x-archive ' ],
18311839 'a26 ' => ['application/x-atari-2600-rom ' ],
18321840 'a78 ' => ['application/x-atari-7800-rom ' ],
@@ -2025,7 +2033,9 @@ public function guessMimeType(string $path): ?string
20252033 'cpio.gz ' => ['application/x-cpio-compressed ' ],
20262034 'cpp ' => ['text/x-c ' , 'text/x-c++src ' ],
20272035 'cpt ' => ['application/mac-compactpro ' ],
2036+ 'cr ' => ['text/crystal ' , 'text/x-crystal ' ],
20282037 'cr2 ' => ['image/x-canon-cr2 ' ],
2038+ 'cr3 ' => ['image/x-canon-cr3 ' ],
20292039 'crd ' => ['application/x-mscardfile ' ],
20302040 'crdownload ' => ['application/x-partial-download ' ],
20312041 'crl ' => ['application/pkix-crl ' ],
@@ -2164,9 +2174,11 @@ public function guessMimeType(string $path): ?string
21642174 'etx ' => ['text/x-setext ' ],
21652175 'eva ' => ['application/x-eva ' ],
21662176 'evy ' => ['application/x-envoy ' ],
2177+ 'ex ' => ['text/x-elixir ' ],
21672178 'exe ' => ['application/x-ms-dos-executable ' , 'application/x-msdos-program ' , 'application/x-msdownload ' ],
21682179 'exi ' => ['application/exi ' ],
21692180 'exr ' => ['image/aces ' , 'image/x-exr ' ],
2181+ 'exs ' => ['text/x-elixir ' ],
21702182 'ext ' => ['application/vnd.novadigm.ext ' ],
21712183 'ez ' => ['application/andrew-inset ' ],
21722184 'ez2 ' => ['application/vnd.ezpix-album ' ],
@@ -2428,12 +2440,13 @@ public function guessMimeType(string $path): ?string
24282440 'jrd ' => ['application/jrd+json ' ],
24292441 'js ' => ['text/javascript ' , 'application/javascript ' , 'application/x-javascript ' ],
24302442 'jsm ' => ['application/javascript ' , 'application/x-javascript ' , 'text/javascript ' ],
2431- 'json ' => ['application/json ' ],
2443+ 'json ' => ['application/json ' , ' application/schema+json ' ],
24322444 'json-patch ' => ['application/json-patch+json ' ],
24332445 'json5 ' => ['application/json5 ' ],
24342446 'jsonld ' => ['application/ld+json ' ],
24352447 'jsonml ' => ['application/jsonml+json ' ],
24362448 'jsx ' => ['text/jsx ' ],
2449+ 'jxl ' => ['image/jxl ' ],
24372450 'jxr ' => ['image/jxr ' ],
24382451 'jxra ' => ['image/jxra ' ],
24392452 'jxrs ' => ['image/jxrs ' ],
@@ -2468,6 +2481,7 @@ public function guessMimeType(string $path): ?string
24682481 'kpt ' => ['application/vnd.kde.kpresenter ' , 'application/x-kpresenter ' ],
24692482 'kpxx ' => ['application/vnd.ds-keypoint ' ],
24702483 'kra ' => ['application/x-krita ' ],
2484+ 'krz ' => ['application/x-krita ' ],
24712485 'ks ' => ['application/x-java-keystore ' ],
24722486 'ksp ' => ['application/vnd.kde.kspread ' , 'application/x-kspread ' ],
24732487 'ksy ' => ['text/x-kaitai-struct ' ],
@@ -2611,7 +2625,7 @@ public function guessMimeType(string $path): ?string
26112625 'mo3 ' => ['audio/x-mo3 ' ],
26122626 'mobi ' => ['application/x-mobipocket-ebook ' ],
26132627 'moc ' => ['text/x-moc ' ],
2614- 'mod ' => ['audio/x-mod ' ],
2628+ 'mod ' => ['application/x-object ' , ' audio/x-mod ' ],
26152629 'mods ' => ['application/mods+xml ' ],
26162630 'mof ' => ['text/x-mof ' ],
26172631 'moov ' => ['video/quicktime ' ],
@@ -2746,7 +2760,7 @@ public function guessMimeType(string $path): ?string
27462760 'opus ' => ['audio/ogg ' , 'audio/x-ogg ' , 'audio/x-opus+ogg ' ],
27472761 'ora ' => ['image/openraster ' ],
27482762 '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 ' ],
27502764 'osf ' => ['application/vnd.yamaha.openscoreformat ' ],
27512765 'osfpvg ' => ['application/vnd.yamaha.openscoreformat.osfpvg+xml ' ],
27522766 'osm ' => ['application/vnd.openstreetmap.data+xml ' ],
@@ -2891,6 +2905,7 @@ public function guessMimeType(string $path): ?string
28912905 'py3x ' => ['text/x-python3 ' ],
28922906 'pya ' => ['audio/vnd.ms-playready.media.pya ' ],
28932907 'pyc ' => ['application/x-python-bytecode ' ],
2908+ 'pyi ' => ['text/x-python3 ' ],
28942909 'pyo ' => ['application/x-python-bytecode ' ],
28952910 'pys ' => ['application/x-pyspread-bz-spreadsheet ' ],
28962911 'pysu ' => ['application/x-pyspread-spreadsheet ' ],
@@ -2993,7 +3008,7 @@ public function guessMimeType(string $path): ?string
29933008 'sass ' => ['text/x-sass ' ],
29943009 'sav ' => ['application/x-spss-sav ' , 'application/x-spss-savefile ' ],
29953010 'sbml ' => ['application/sbml+xml ' ],
2996- 'sc ' => ['application/vnd.ibm.secure-container ' ],
3011+ 'sc ' => ['application/vnd.ibm.secure-container ' , ' text/x-scala ' ],
29973012 'scala ' => ['text/x-scala ' ],
29983013 'scd ' => ['application/x-msschedule ' ],
29993014 'scm ' => ['application/vnd.lotus-screencam ' , 'text/x-scheme ' ],
0 commit comments