forked from anas20023/cloud-file-storage_backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmimeTypes.js
89 lines (83 loc) · 1.83 KB
/
mimeTypes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
export const mimeTypeMapping = {
// Archives
zip: "zip",
"x-zip-compressed": "zip",
gzip: "gzip",
"x-tar": "tar",
"x-bzip2": "bzip2",
"x-rar-compressed": "rar",
"x-7z-compressed": "7z",
"x-deb": "deb",
"x-dmg": "dmg",
"x-iso9660-image": "iso",
"x-bittorrent": "torrent",
"x-cab": "cab",
"x-mobipocket-ebook": "mobi",
"x-msi": "msi",
"x-photoshop": "psd",
"x-freearc": "arc",
"x-dvi": "dvi",
"x-latex": "latex",
"x-tex": "tex",
"x-makeself": "run",
// Documents
pdf: "pdf",
msword: "doc",
"vnd.openxmlformats-officedocument.wordprocessingml.document": "docx",
"vnd.ms-excel": "xls",
"vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
"vnd.ms-powerpoint": "ppt",
"vnd.openxmlformats-officedocument.presentationml.presentation": "pptx",
"vnd.oasis.opendocument.text": "odt",
"vnd.oasis.opendocument.spreadsheet": "ods",
"vnd.oasis.opendocument.presentation": "odp",
rtf: "rtf",
xml: "xml",
json: "json",
html: "html",
plain: "txt",
// Images
jpeg: "jpeg",
png: "png",
gif: "gif",
bmp: "bmp",
"svg+xml": "svg",
webp: "webp",
tiff: "tiff",
ico: "ico",
// Audio
mpeg: "mp3",
wav: "wav",
ogg: "ogg",
aac: "aac",
flac: "flac",
midi: "midi",
"x-aiff": "aiff",
// Video
mp4: "mp4",
"x-msvideo": "avi",
"x-matroska": "mkv",
webm: "webm",
quicktime: "mov",
"x-flv": "flv",
"x-ms-wmv": "wmv",
"3gpp": "3gp",
"3gpp2": "3g2",
// Fonts
"x-font-ttf": "ttf",
"x-font-otf": "otf",
"x-font-woff": "woff",
"x-font-woff2": "woff2",
// Miscellaneous
"x-shockwave-flash": "swf",
"x-java-archive": "jar",
"x-xpinstall": "xpi",
"x-chrome-extension": "crx",
"x-msdownload": "exe",
"x-csh": "csh",
"x-sql": "sql",
"x-pkcs12": "p12",
"x-pkcs7-certreqresp": "p7r",
"x-pkcs7-mime": "p7m",
"x-pkcs7-signature": "p7s",
};