2
from pathlib import Path
3
4
_default = "application/octet-stream"
5
+# Extension (lowercase, with leading dot) -> MIME type. Mirrors
6
+# `MIME_TYPES_BY_EXTENSION` in the TypeScript SDK
7
+# (`ts/packages/core/src/utils/mime.ts`), whose values come from the `mime` npm
8
+# package; keep the two identical.
9
_types = {
6
- ".3dm": "x-world/x-3dmf",
7
- ".3dmf": "x-world/x-3dmf",
10
+ ".3g2": "video/3gpp2",
11
+ ".3gp": "video/3gpp",
12
+ ".3gpp": "video/3gpp",
13
".7z": "application/x-7z-compressed",
9
- ".a": "application/octet-stream",
14
".aab": "application/x-authorware-bin",
15
+ ".aac": "audio/aac",
16
".aam": "application/x-authorware-map",
17
".aas": "application/x-authorware-seg",
13
- ".abc": "text/vnd.abc",
14
- ".acgi": "text/html",
15
- ".afl": "video/animaflex",
18
+ ".adts": "audio/aac",
19
".ai": "application/postscript",
20
".aif": "audio/x-aiff",
21
".aifc": "audio/x-aiff",
22
".aiff": "audio/x-aiff",
20
- ".aim": "application/x-aim",
21
- ".aip": "text/x-audiosoft-intra",
22
- ".ani": "application/x-navi-animation",
23
- ".aos": "application/x-nokia-9000-communicator-add-on-software",
24
- ".aps": "application/mime",
25
- ".arc": "application/octet-stream",
26
- ".arj": "application/octet-stream",
27
- ".art": "image/x-jg",
23
+ ".arc": "application/x-freearc",
24
+ ".arj": "application/x-arj",
25
".asf": "video/x-ms-asf",
26
".asm": "text/x-asm",
30
- ".asp": "text/asp",
31
- ".asx": "video/x-ms-asf-plugin",
27
+ ".asx": "video/x-ms-asf",
28
".au": "audio/basic",
29
".avi": "video/x-msvideo",
34
- ".avs": "video/avs-video",
30
+ ".avif": "image/avif",
31
+ ".bat": "application/x-msdownload",
32
".bcpio": "application/x-bcpio",
36
- ".bin": "application/octet-stream",
37
- ".bm": "image/bmp",
38
- ".bmp": "image/x-ms-bmp",
39
- ".boo": "application/book",
40
- ".book": "application/book",
33
+ ".bmp": "image/bmp",
34
+ ".book": "application/vnd.framemaker",
35
".boz": "application/x-bzip2",
42
- ".bsh": "application/x-bsh",
36
".bz": "application/x-bzip",
37
".bz2": "application/x-bzip2",
45
- ".c": "text/plain",
46
- ".c+": "text/plain",
38
+ ".c": "text/x-c",
39
".cat": "application/vnd.ms-pki.seccat",
40
".cc": "text/x-c",
49
- ".ccad": "application/clariscad",
41
".cco": "application/x-cocoa",
42
".cdf": "application/x-netcdf",
52
- ".cer": "application/x-x509-ca-cert",
53
- ".cha": "application/x-chat",
43
+ ".cer": "application/pkix-cert",
44
".chat": "application/x-chat",
55
- ".class": "application/x-java-class",
56
- ".com": "text/plain",
45
+ ".class": "application/java-vm",
46
+ ".com": "application/x-msdownload",
47
".conf": "text/plain",
48
".cpio": "application/x-cpio",
49
".cpp": "text/x-c",
60
- ".cpt": "application/x-cpt",
50
+ ".cpt": "application/mac-compactpro",
51
".crl": "application/pkix-crl",
62
- ".crt": "application/x-x509-user-cert",
52
+ ".crt": "application/x-x509-ca-cert",
53
".csh": "application/x-csh",
54
".css": "text/css",
55
".csv": "text/csv",
66
- ".cxx": "text/plain",
56
+ ".cxx": "text/x-c",
57
".dcr": "application/x-director",
68
- ".deepv": "application/x-deepv",
58
".def": "text/plain",
59
".der": "application/x-x509-ca-cert",
71
- ".dif": "video/x-dv",
60
".dir": "application/x-director",
73
- ".dl": "video/x-dl",
61
".doc": "application/msword",
62
".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
63
".dot": "application/msword",
77
- ".dp": "application/commonground",
78
- ".drw": "application/drafting",
79
- ".dump": "application/octet-stream",
80
- ".dv": "video/x-dv",
64
+ ".dp": "application/vnd.osgi.dp",
65
".dvi": "application/x-dvi",
66
".dwf": "model/vnd.dwf",
83
- ".dwg": "image/x-dwg",
84
- ".dxf": "image/x-dwg",
67
+ ".dwg": "image/vnd.dwg",
68
+ ".dxf": "image/vnd.dxf",
69
".dxr": "application/x-director",
86
- ".el": "text/x-script.elisp",
87
- ".elc": "application/x-elc",
88
- ".env": "application/x-envoy",
70
+ ".eml": "message/rfc822",
71
".eot": "application/vnd.ms-fontobject",
72
".eps": "application/postscript",
91
- ".es": "application/x-esrehber",
73
+ ".epub": "application/epub+zip",
74
".etx": "text/x-setext",
75
".evy": "application/x-envoy",
94
- ".exe": "application/octet-stream",
76
".f": "text/x-fortran",
77
".f77": "text/x-fortran",
78
".f90": "text/x-fortran",
98
- ".fdf": "application/vnd.fdf",
99
- ".fif": "image/fif",
100
- ".flac": "audio/flac",
79
+ ".fdf": "application/fdf",
80
+ ".flac": "audio/x-flac",
81
".fli": "video/x-fli",
102
- ".flo": "image/florian",
82
+ ".flo": "application/vnd.micrografx.flo",
83
".flx": "text/vnd.fmi.flexstor",
104
- ".fmf": "video/x-atomic3d-feature",
84
".for": "text/x-fortran",
106
- ".fpx": "image/vnd.net-fpx",
107
- ".frl": "application/freeloader",
108
- ".funk": "audio/make",
109
- ".g": "text/plain",
85
+ ".fpx": "image/vnd.fpx",
86
".g3": "image/g3fax",
87
".gif": "image/gif",
112
- ".gl": "video/x-gl",
113
- ".gsd": "audio/x-gsm",
114
- ".gsm": "audio/x-gsm",
115
- ".gsp": "application/x-gsp",
116
- ".gss": "application/x-gss",
88
".gtar": "application/x-gtar",
118
- ".gz": "application/x-gzip",
119
- ".gzip": "multipart/x-gzip",
120
- ".h": "text/plain",
89
+ ".gz": "application/gzip",
90
+ ".h": "text/x-c",
91
".hdf": "application/x-hdf",
122
- ".help": "application/x-helpfile",
123
- ".hgl": "application/vnd.hp-hpgl",
124
- ".hh": "text/x-h",
125
- ".hlb": "text/x-script",
126
- ".hlp": "application/x-winhelp",
127
- ".hpg": "application/vnd.hp-hpgl",
92
+ ".heic": "image/heic",
93
+ ".heif": "image/heif",
94
+ ".hh": "text/x-c",
95
+ ".hlp": "application/winhlp",
96
".hpgl": "application/vnd.hp-hpgl",
129
- ".hqx": "application/x-mac-binhex40",
130
- ".hta": "application/hta",
97
+ ".hqx": "application/mac-binhex40",
98
".htc": "text/x-component",
99
".htm": "text/html",
100
".html": "text/html",
134
- ".htmls": "text/html",
135
- ".htt": "text/webviewhtml",
136
- ".htx": "text/html",
101
".ice": "x-conference/x-cooltalk",
102
".ico": "image/vnd.microsoft.icon",
103
".ics": "text/calendar",
140
- ".idc": "text/plain",
104
".ief": "image/ief",
142
- ".iefs": "image/ief",
105
".iges": "model/iges",
106
".igs": "model/iges",
145
- ".ima": "application/x-ima",
146
- ".imap": "application/x-httpd-imap",
147
- ".inf": "application/inf",
148
- ".ins": "application/x-internett-signup",
149
- ".ip": "application/x-ip2",
150
- ".isu": "video/x-isvideo",
151
- ".it": "audio/it",
152
- ".iv": "application/x-inventor",
153
- ".ivr": "i-world/i-vrml",
154
- ".ivy": "application/x-livescreen",
155
- ".jam": "audio/x-jam",
156
- ".jav": "text/x-java-source",
107
+ ".jam": "application/vnd.jam",
108
".java": "text/x-java-source",
158
- ".jcm": "application/x-java-commerce",
109
".jfif": "image/pjpeg",
160
- ".jfif-bnl": "image/jpeg",
110
".jpe": "image/jpeg",
111
".jpeg": "image/jpeg",
112
".jpg": "image/jpeg",
164
- ".jps": "image/x-jps",
165
- ".js": "application/javascript",
113
+ ".js": "text/javascript",
114
".json": "application/json",
167
- ".jut": "image/jutvision",
168
- ".kar": "music/x-karaoke",
169
- ".ksh": "text/plain",
170
- ".la": "audio/x-nspaudio",
171
- ".lam": "audio/x-liveaudio",
115
+ ".kar": "audio/midi",
116
+ ".key": "application/vnd.apple.keynote",
117
".latex": "application/x-latex",
173
- ".lha": "application/x-lha",
174
- ".lhx": "application/octet-stream",
118
+ ".lha": "application/x-lzh-compressed",
119
".list": "text/plain",
176
- ".lma": "audio/x-nspaudio",
120
".log": "text/plain",
178
- ".lsp": "text/x-script.lisp",
179
- ".lst": "text/plain",
180
- ".lsx": "text/x-la-asf",
181
- ".ltx": "application/x-latex",
182
- ".lzh": "application/x-lzh",
183
- ".lzx": "application/x-lzx",
184
- ".m": "text/x-m",
121
+ ".lzh": "application/x-lzh-compressed",
122
".m1v": "video/mpeg",
123
".m2a": "audio/mpeg",
124
".m2v": "video/mpeg",
188
- ".m3u": "application/vnd.apple.mpegurl",
189
- ".man": "application/x-troff-man",
190
- ".map": "application/x-navimap",
191
- ".mar": "text/plain",
192
- ".mbd": "application/mbedlet",
193
- ".mc": "application/x-magic-cap-package-1.0",
194
- ".mcd": "application/x-mathcad",
195
- ".mcf": "text/mcf",
196
- ".mcp": "application/netmc",
197
- ".me": "application/x-troff-me",
125
+ ".m3u": "audio/x-mpegurl",
126
+ ".m3u8": "application/vnd.apple.mpegurl",
127
+ ".m4a": "audio/mp4",
128
+ ".man": "text/troff",
129
+ ".map": "application/json",
130
+ ".mcd": "application/vnd.mcd",
131
+ ".md": "text/markdown",
132
+ ".me": "text/troff",
133
".mht": "message/rfc822",
134
".mhtml": "message/rfc822",
135
".mid": "audio/midi",
136
".midi": "audio/midi",
202
- ".mif": "application/x-mif",
203
- ".mime": "www/mime",
204
- ".mjf": "audio/x-vnd.audioexplosion.mjuicemediafile",
205
- ".mjpg": "video/x-motion-jpeg",
137
+ ".mif": "application/vnd.mif",
138
+ ".mime": "message/rfc822",
139
+ ".mjs": "text/javascript",
140
".mka": "audio/x-matroska",
141
".mkv": "video/x-matroska",
208
- ".mm": "application/x-meme",
209
- ".mme": "application/base64",
210
- ".mod": "audio/x-mod",
211
- ".moov": "video/quicktime",
142
".mov": "video/quicktime",
143
".movie": "video/x-sgi-movie",
144
".mp2": "audio/mpeg",
145
".mp3": "audio/mpeg",
146
".mp4": "video/mp4",
217
- ".mpa": "video/mpeg",
218
- ".mpc": "application/x-project",
147
+ ".mpc": "application/vnd.mophun.certificate",
148
".mpe": "video/mpeg",
149
".mpeg": "video/mpeg",
150
".mpg": "video/mpeg",
151
".mpga": "audio/mpeg",
223
- ".mpp": "application/vnd.ms-project",
224
- ".mpt": "application/x-project",
225
- ".mpv": "application/x-project",
226
- ".mpx": "application/x-project",
152
+ ".mpp": "application/dash-patch+xml",
153
+ ".mpt": "application/vnd.ms-project",
154
".mrc": "application/marc",
228
- ".ms": "application/x-troff-ms",
229
- ".mv": "video/x-sgi-movie",
230
- ".my": "audio/make",
231
- ".mzz": "application/x-vnd.audioexplosion.mzz",
232
- ".nap": "image/naplps",
233
- ".naplps": "image/naplps",
155
+ ".ms": "text/troff",
156
".nc": "application/x-netcdf",
235
- ".ncm": "application/vnd.nokia.configuration-message",
236
- ".nif": "image/x-niff",
237
- ".niff": "image/x-niff",
238
- ".nix": "application/x-mix-transfer",
157
".nsc": "application/x-conference",
240
- ".nvd": "application/x-navidoc",
241
- ".o": "application/octet-stream",
158
+ ".numbers": "application/vnd.apple.numbers",
159
+ ".obj": "model/obj",
160
".oda": "application/oda",
243
- ".ogg": "video/ogg",
244
- ".omc": "application/x-omc",
245
- ".omcd": "application/x-omcdatamaker",
246
- ".omcr": "application/x-omcregerator",
161
+ ".odg": "application/vnd.oasis.opendocument.graphics",
162
+ ".odp": "application/vnd.oasis.opendocument.presentation",
163
+ ".ods": "application/vnd.oasis.opendocument.spreadsheet",
164
+ ".odt": "application/vnd.oasis.opendocument.text",
165
+ ".ogg": "audio/ogg",
166
+ ".opus": "audio/ogg",
167
".otf": "font/otf",
168
".p": "text/x-pascal",
249
- ".p10": "application/x-pkcs10",
169
+ ".p10": "application/pkcs10",
170
".p12": "application/x-pkcs12",
251
- ".p7a": "application/x-pkcs7-signature",
171
".p7c": "application/pkcs7-mime",
253
- ".p7m": "application/x-pkcs7-mime",
172
+ ".p7m": "application/pkcs7-mime",
173
".p7r": "application/x-pkcs7-certreqresp",
174
".p7s": "application/pkcs7-signature",
256
- ".part": "application/pro_eng",
257
- ".pas": "text/pascal",
175
+ ".pages": "application/vnd.apple.pages",
176
+ ".pas": "text/x-pascal",
177
".pbm": "image/x-portable-bitmap",
259
- ".pcl": "application/x-pcl",
260
- ".pct": "image/pict",
261
- ".pcx": "image/x-pcx",
262
- ".pdb": "chemical/x-pdb",
178
+ ".pcl": "application/vnd.hp-pcl",
179
+ ".pct": "image/x-pict",
180
+ ".pcx": "image/vnd.zbrush.pcx",
181
+ ".pdb": "application/vnd.palm",
182
".pdf": "application/pdf",
264
- ".pfunk": "audio/make.my.funk",
183
+ ".pfx": "application/x-pkcs12",
184
".pgm": "image/x-portable-graymap",
266
- ".pic": "image/pict",
267
- ".pict": "image/pict",
268
- ".pkg": "application/x-newton-compatible-pkg",
269
- ".pko": "application/vnd.ms-pki.pko",
270
- ".pl": "text/plain",
271
- ".plx": "application/x-pixclscript",
272
- ".pm": "text/x-script.perl-module",
273
- ".pm4": "application/x-pagemaker",
274
- ".pm5": "application/x-pagemaker",
185
+ ".pic": "image/x-pict",
186
+ ".pl": "application/x-perl",
187
+ ".pm": "application/x-perl",
188
".png": "image/png",
189
".pnm": "image/x-portable-anymap",
190
".pot": "application/vnd.ms-powerpoint",
278
- ".pov": "model/x-pov",
279
- ".ppa": "application/vnd.ms-powerpoint",
191
".ppm": "image/x-portable-pixmap",
192
".pps": "application/vnd.ms-powerpoint",
193
".ppt": "application/vnd.ms-powerpoint",
194
".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
284
- ".ppz": "application/mspowerpoint",
285
- ".pre": "application/x-freelance",
286
- ".prt": "application/pro_eng",
195
+ ".pre": "application/vnd.lotus-freelance",
196
".ps": "application/postscript",
288
- ".psd": "application/octet-stream",
289
- ".pvu": "paleovu/x-pv",
290
- ".pwz": "application/vnd.ms-powerpoint",
291
- ".py": "text/x-python",
292
- ".pyc": "application/x-python-code",
293
- ".qcp": "audio/vnd.qcelp",
294
- ".qd3": "x-world/x-3dmf",
295
- ".qd3d": "x-world/x-3dmf",
296
- ".qif": "image/x-quicktime",
197
+ ".psd": "image/vnd.adobe.photoshop",
198
+ ".pyo": "model/vnd.pytha.pyox",
199
".qt": "video/quicktime",
298
- ".qtc": "video/x-qtc",
299
- ".qti": "image/x-quicktime",
300
- ".qtif": "image/x-quicktime",
200
".ra": "audio/x-pn-realaudio",
302
- ".ram": "application/x-pn-realaudio",
303
- ".ras": "image/x-cmu-raster",
304
- ".rast": "image/cmu-raster",
201
+ ".ram": "audio/x-pn-realaudio",
202
".rar": "application/vnd.rar",
306
- ".rexx": "text/x-script.rexx",
307
- ".rf": "image/vnd.rn-realflash",
203
+ ".ras": "image/x-cmu-raster",
204
+ ".rdf": "application/rdf+xml",
205
".rgb": "image/x-rgb",
309
- ".rm": "audio/x-pn-realaudio",
310
- ".rmi": "audio/mid",
311
- ".rmm": "audio/x-pn-realaudio",
206
+ ".rm": "application/vnd.rn-realmedia",
207
+ ".rmi": "audio/midi",
208
".rmp": "audio/x-pn-realaudio-plugin",
313
- ".rng": "application/vnd.nokia.ringing-tone",
314
- ".rnx": "application/vnd.rn-realplayer",
315
- ".roff": "application/x-troff",
316
- ".rp": "image/vnd.rn-realpix",
317
- ".rpm": "audio/x-pn-realaudio-plugin",
318
- ".rt": "text/vnd.rn-realtext",
209
+ ".rng": "application/xml",
210
+ ".roff": "text/troff",
211
+ ".rpm": "application/x-redhat-package-manager",
212
".rtf": "application/rtf",
213
".rtx": "text/richtext",
321
- ".rv": "video/vnd.rn-realvideo",
214
".s": "text/x-asm",
215
".s3m": "audio/s3m",
324
- ".saveme": "application/octet-stream",
325
- ".sbk": "application/x-tbook",
326
- ".scm": "video/x-scm",
327
- ".sdml": "text/plain",
328
- ".sdp": "application/x-sdp",
329
- ".sdr": "application/sounder",
216
+ ".scm": "application/vnd.lotus-screencam",
217
+ ".sdp": "application/sdp",
218
".sea": "application/x-sea",
331
- ".set": "application/set",
332
- ".sgm": "text/x-sgml",
333
- ".sgml": "text/x-sgml",
219
+ ".sgm": "text/sgml",
220
+ ".sgml": "text/sgml",
221
".sh": "application/x-sh",
222
".shar": "application/x-shar",
336
- ".shtml": "text/x-server-parsed-html",
337
- ".sid": "audio/x-psid",
223
+ ".shtml": "text/html",
224
+ ".sid": "image/x-mrsid-image",
225
".sit": "application/x-stuffit",
339
- ".skd": "application/x-koan",
340
- ".skm": "application/x-koan",
341
- ".skp": "application/x-koan",
342
- ".skt": "application/x-koan",
343
- ".sl": "application/x-seelogo",
344
- ".smi": "application/smil",
345
- ".smil": "application/smil",
226
+ ".skd": "application/vnd.koan",
227
+ ".skm": "application/vnd.koan",
228
+ ".skp": "application/vnd.koan",
229
+ ".skt": "application/vnd.koan",
230
+ ".smi": "application/smil+xml",
231
+ ".smil": "application/smil+xml",
232
".snd": "audio/basic",
347
- ".sol": "application/solids",
348
- ".spc": "text/x-speech",
349
- ".spl": "application/futuresplash",
350
- ".spr": "application/x-sprite",
351
- ".sprite": "application/x-sprite",
233
+ ".spc": "application/x-pkcs7-certificates",
234
+ ".spl": "application/x-futuresplash",
235
".src": "application/x-wais-source",
353
- ".ssi": "text/x-server-parsed-html",
354
- ".ssm": "application/streamingmedia",
355
- ".sst": "application/vnd.ms-pki.certstore",
356
- ".step": "application/step",
357
- ".stl": "application/x-navistyle",
358
- ".stp": "application/step",
236
+ ".step": "model/step",
237
+ ".stl": "model/stl",
238
+ ".stp": "model/step",
239
".sv4cpio": "application/x-sv4cpio",
240
".sv4crc": "application/x-sv4crc",
361
- ".svf": "image/x-dwg",
241
".svg": "image/svg+xml",
363
- ".svr": "x-world/x-svr",
242
".swf": "application/x-shockwave-flash",
365
- ".t": "application/x-troff",
366
- ".talk": "text/x-speech",
243
+ ".t": "text/troff",
244
".tar": "application/x-tar",
368
- ".tbk": "application/x-tbook",
245
".tcl": "application/x-tcl",
370
- ".tcsh": "text/x-script.tcsh",
246
".tex": "application/x-tex",
247
".texi": "application/x-texinfo",
248
".texinfo": "application/x-texinfo",
249
".text": "text/plain",
375
- ".tgz": "application/x-compressed",
250
".tif": "image/tiff",
251
".tiff": "image/tiff",
378
- ".tr": "application/x-troff",
252
+ ".tr": "text/troff",
253
".ts": "video/mp2t",
380
- ".tsi": "audio/tsp-audio",
381
- ".tsp": "audio/tsplayer",
254
".tsv": "text/tab-separated-values",
383
- ".turbot": "image/florian",
255
".txt": "text/plain",
385
- ".uil": "text/x-uil",
386
- ".uni": "text/uri-list",
387
- ".unis": "text/uri-list",
388
- ".unv": "application/i-deas",
256
".uri": "text/uri-list",
257
".uris": "text/uri-list",
258
".ustar": "application/x-ustar",
259
".uu": "text/x-uuencode",
393
- ".uue": "text/x-uuencode",
260
".vcd": "application/x-cdlink",
261
+ ".vcf": "text/x-vcard",
262
".vcs": "text/x-vcalendar",
396
- ".vda": "application/vda",
397
- ".vdo": "video/vdo",
398
- ".vew": "application/groupwise",
263
".viv": "video/vnd.vivo",
400
- ".vivo": "video/vnd.vivo",
401
- ".vmd": "application/vocaltec-media-desc",
402
- ".vmf": "application/vocaltec-media-file",
403
- ".voc": "audio/x-voc",
404
- ".vos": "video/vosaic",
405
- ".vox": "audio/voxware",
406
- ".vqe": "audio/x-twinvq-plugin",
407
- ".vqf": "audio/x-twinvq",
408
- ".vql": "audio/x-twinvq-plugin",
409
- ".vrml": "x-world/x-vrml",
410
- ".vrt": "x-world/x-vrt",
411
- ".vsd": "application/x-visio",
412
- ".vst": "application/x-visio",
413
- ".vsw": "application/x-visio",
414
- ".w60": "application/wordperfect6.0",
415
- ".w61": "application/wordperfect6.1",
416
- ".w6w": "application/msword",
417
- ".wav": "audio/x-wav",
418
- ".wb1": "application/x-qpro",
264
+ ".vox": "application/x-authorware-bin",
265
+ ".vrml": "model/vrml",
266
+ ".vsd": "application/vnd.visio",
267
+ ".vst": "application/vnd.visio",
268
+ ".vsw": "application/vnd.visio",
269
+ ".wasm": "application/wasm",
270
+ ".wav": "audio/wav",
271
".wbmp": "image/vnd.wap.wbmp",
420
- ".web": "application/vnd.xara",
272
".webm": "video/webm",
273
+ ".webmanifest": "application/manifest+json",
274
".webp": "image/webp",
423
- ".wiz": "application/msword",
424
- ".wk1": "application/x-123",
425
- ".wmf": "windows/metafile",
275
+ ".wmf": "image/wmf",
276
".wml": "text/vnd.wap.wml",
277
".wmlc": "application/vnd.wap.wmlc",
278
".wmls": "text/vnd.wap.wmlscript",
279
".wmlsc": "application/vnd.wap.wmlscriptc",
430
- ".word": "application/msword",
280
".woff": "font/woff",
281
".woff2": "font/woff2",
433
- ".wp": "application/wordperfect",
434
- ".wp5": "application/wordperfect6.0",
435
- ".wp6": "application/wordperfect",
436
- ".wpd": "application/x-wpwin",
437
- ".wq1": "application/x-lotus",
438
- ".wri": "application/x-wri",
439
- ".wrl": "x-world/x-vrml",
440
- ".wrz": "x-world/x-vrml",
441
- ".wsc": "text/scriplet",
442
- ".wsrc": "application/x-wais-source",
443
- ".wtk": "application/x-wintalk",
282
+ ".wpd": "application/vnd.wordperfect",
283
+ ".wri": "application/x-mswrite",
284
+ ".wrl": "model/vrml",
285
+ ".wsc": "message/vnd.wfa.wsc",
286
+ ".wsdl": "application/wsdl+xml",
287
".xbm": "image/x-xbitmap",
445
- ".xdr": "video/x-amt-demorun",
446
- ".xgz": "xgl/drawing",
288
".xif": "image/vnd.xiff",
448
- ".xl": "application/excel",
449
- ".xla": "application/x-msexcel",
450
- ".xlb": "application/vnd.ms-excel",
451
- ".xlc": "application/x-excel",
452
- ".xld": "application/x-excel",
453
- ".xlk": "application/x-excel",
454
- ".xll": "application/x-excel",
455
- ".xlm": "application/x-excel",
289
+ ".xla": "application/vnd.ms-excel",
290
+ ".xlc": "application/vnd.ms-excel",
291
+ ".xlm": "application/vnd.ms-excel",
292
".xls": "application/vnd.ms-excel",
457
- ".xlt": "application/x-excel",
458
- ".xlv": "application/x-excel",
459
- ".xlw": "application/x-msexcel",
293
+ ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
294
+ ".xlt": "application/vnd.ms-excel",
295
+ ".xlw": "application/vnd.ms-excel",
296
".xm": "audio/xm",
461
- ".xml": "text/xml",
462
- ".xmz": "xgl/movie",
463
- ".xpix": "application/x-vnd.ls-xpix",
297
+ ".xml": "application/xml",
298
".xpm": "image/x-xpixmap",
465
- ".x-ng": "image/png",
466
- ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
467
- ".xsr": "video/x-amt-showrun",
299
+ ".xsl": "application/xml",
300
+ ".xul": "application/vnd.mozilla.xul+xml",
301
".xwd": "image/x-xwindowdump",
469
- ".xyz": "chemical/x-pdb",
470
- ".yaml": "application/x-yaml",
471
- ".yml": "application/x-yaml",
472
- ".z": "application/x-compressed",
302
+ ".xyz": "chemical/x-xyz",
303
+ ".yaml": "text/yaml",
304
+ ".yml": "text/yaml",
305
".zip": "application/zip",
474
- ".zoo": "application/octet-stream",
475
- ".zsh": "text/x-script.zsh",
476
- ".mjs": "application/javascript",
477
- ".webmanifest": "application/manifest+json",
478
- ".dll": "application/octet-stream",
479
- ".obj": "application/octet-stream",
480
- ".so": "application/octet-stream",
481
- ".m3u8": "application/vnd.apple.mpegurl",
482
- ".wasm": "application/wasm",
483
- ".h5": "application/x-hdf5",
484
- ".pfx": "application/x-pkcs12",
485
- ".pyo": "application/x-python-code",
486
- ".xsl": "application/xml",
487
- ".rdf": "application/xml",
488
- ".wsdl": "application/xml",
489
- ".xpdl": "application/xml",
490
- ".3gp": "audio/3gpp",
491
- ".3gpp": "audio/3gpp",
492
- ".3g2": "audio/3gpp2",
306
+ # Not known to the `mime` npm package; values from Python's standard
307
+ # `mimetypes`, except `.tgz`.
308
".3gpp2": "audio/3gpp2",
494
- ".aac": "audio/aac",
495
- ".adts": "audio/aac",
496
- ".loas": "audio/aac",
309
".ass": "audio/aac",
498
- ".opus": "audio/opus",
499
- ".heic": "image/heic",
500
- ".heif": "image/heif",
501
- ".eml": "message/rfc822",
310
+ ".h5": "application/x-hdf5",
311
+ ".ksh": "text/plain",
312
+ ".loas": "audio/aac",
313
+ ".mpa": "video/mpeg",
314
".nws": "message/rfc822",
503
- ".bat": "text/plain",
504
- ".vcf": "text/x-vcard",
505
- ".xul": "text/xul",
315
+ ".ppa": "application/vnd.ms-powerpoint",
316
+ ".pwz": "application/vnd.ms-powerpoint",
317
+ ".py": "text/x-python",
318
+ ".pyc": "application/x-python-code",
319
+ ".tgz": "application/gzip",
320
+ ".wiz": "application/msword",
321
+ ".xlb": "application/vnd.ms-excel",
322
+ ".xpdl": "application/xml",
323
}
324
325