1{ 2 "_comment" : "Array mapping file extensions to mimetypes (in alphabetical order)", 3 "_comment2": "The first index in the mime type array is the assumed correct mimetype", 4 "_comment3": "and the second (if present) is a secure alternative", 5 6 "_comment4": "Any changes you make here will be overwritten on an update of Nextcloud", 7 "_comment5": "Put any custom mappings in a new file mimetypemapping.json in the config/ folder of Nextcloud", 8 9 10 "3gp": ["video/3gpp"], 11 "7z": ["application/x-7z-compressed"], 12 "accdb": ["application/msaccess"], 13 "ai": ["application/illustrator"], 14 "apk": ["application/vnd.android.package-archive"], 15 "arw": ["image/x-dcraw"], 16 "avi": ["video/x-msvideo"], 17 "bash": ["text/x-shellscript"], 18 "bat": ["application/x-msdos-program"], 19 "blend": ["application/x-blender"], 20 "bin": ["application/x-bin"], 21 "bmp": ["image/bmp"], 22 "bpg": ["image/bpg"], 23 "bz2": ["application/x-bzip2"], 24 "cb7": ["application/comicbook+7z"], 25 "cba": ["application/comicbook+ace"], 26 "cbr": ["application/comicbook+rar"], 27 "cbt": ["application/comicbook+tar"], 28 "cbtc": ["application/comicbook+truecrypt"], 29 "cbz": ["application/comicbook+zip"], 30 "cc": ["text/x-c"], 31 "cdr": ["application/coreldraw"], 32 "class": ["application/java"], 33 "cmd": ["application/cmd"], 34 "cnf": ["text/plain"], 35 "conf": ["text/plain"], 36 "cpp": ["text/x-c++src"], 37 "cr2": ["image/x-dcraw"], 38 "css": ["text/css"], 39 "csv": ["text/csv"], 40 "cvbdl": ["application/x-cbr"], 41 "c": ["text/x-c"], 42 "c++": ["text/x-c++src"], 43 "dcr": ["image/x-dcraw"], 44 "deb": ["application/x-deb"], 45 "dng": ["image/x-dcraw"], 46 "doc": ["application/msword"], 47 "docm": ["application/vnd.ms-word.document.macroEnabled.12"], 48 "docx": ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"], 49 "dot": ["application/msword"], 50 "dotx": ["application/vnd.openxmlformats-officedocument.wordprocessingml.template"], 51 "dv": ["video/dv"], 52 "eot": ["application/vnd.ms-fontobject"], 53 "epub": ["application/epub+zip"], 54 "eps": ["application/postscript"], 55 "erf": ["image/x-dcraw"], 56 "exe": ["application/x-ms-dos-executable"], 57 "fb2": ["application/x-fictionbook+xml", "text/plain"], 58 "flac": ["audio/flac"], 59 "flv": ["video/x-flv"], 60 "gif": ["image/gif"], 61 "gpx": ["application/gpx+xml"], 62 "gz": ["application/x-gzip"], 63 "gzip": ["application/x-gzip"], 64 "h": ["text/x-h"], 65 "heic": ["image/heic"], 66 "heif": ["image/heif"], 67 "hh": ["text/x-h"], 68 "hpp": ["text/x-h"], 69 "htaccess": ["text/plain"], 70 "html": ["text/html", "text/plain"], 71 "htm": ["text/html", "text/plain"], 72 "ical": ["text/calendar"], 73 "ics": ["text/calendar"], 74 "iiq": ["image/x-dcraw"], 75 "impress": ["text/impress"], 76 "java": ["text/x-java-source"], 77 "jp2": ["image/jp2"], 78 "jpeg": ["image/jpeg"], 79 "jpg": ["image/jpeg"], 80 "jps": ["image/jpeg"], 81 "js": ["application/javascript", "text/plain"], 82 "json": ["application/json", "text/plain"], 83 "k25": ["image/x-dcraw"], 84 "kdbx": ["application/x-kdbx"], 85 "kdc": ["image/x-dcraw"], 86 "key": ["application/x-iwork-keynote-sffkey"], 87 "keynote": ["application/x-iwork-keynote-sffkey"], 88 "km": ["application/km"], 89 "kml": ["application/vnd.google-earth.kml+xml"], 90 "kmz": ["application/vnd.google-earth.kmz"], 91 "kra": ["application/x-krita"], 92 "ldif": ["text/x-ldif"], 93 "lwp": ["application/vnd.lotus-wordpro"], 94 "m2t": ["video/mp2t"], 95 "m3u": ["audio/mpegurl"], 96 "m3u8": ["audio/mpegurl"], 97 "m4a": ["audio/mp4"], 98 "m4b": ["audio/m4b"], 99 "m4v": ["video/mp4"], 100 "markdown": ["text/markdown"], 101 "mdown": ["text/markdown"], 102 "md": ["text/markdown"], 103 "mdb": ["application/msaccess"], 104 "mdwn": ["text/markdown"], 105 "mkd": ["text/markdown"], 106 "mef": ["image/x-dcraw"], 107 "mkv": ["video/x-matroska"], 108 "mm": ["application/x-freemind"], 109 "mobi": ["application/x-mobipocket-ebook"], 110 "mov": ["video/quicktime"], 111 "mp3": ["audio/mpeg"], 112 "mp4": ["video/mp4"], 113 "mpeg": ["video/mpeg"], 114 "mpg": ["video/mpeg"], 115 "mpo": ["image/jpeg"], 116 "msi": ["application/x-msi"], 117 "mts": ["video/MP2T"], 118 "mt2s": ["video/MP2T"], 119 "nef": ["image/x-dcraw"], 120 "numbers": ["application/x-iwork-numbers-sffnumbers"], 121 "odf": ["application/vnd.oasis.opendocument.formula"], 122 "odg": ["application/vnd.oasis.opendocument.graphics"], 123 "odp": ["application/vnd.oasis.opendocument.presentation"], 124 "ods": ["application/vnd.oasis.opendocument.spreadsheet"], 125 "odt": ["application/vnd.oasis.opendocument.text"], 126 "ott": ["application/vnd.oasis.opendocument.text-template"], 127 "ots": ["application/vnd.oasis.opendocument.spreadsheet-template"], 128 "otp": ["application/vnd.oasis.opendocument.presentation-template"], 129 "otg": ["application/vnd.oasis.opendocument.graphics-template"], 130 "fodt": ["application/vnd.oasis.opendocument.text-flat-xml"], 131 "fods": ["application/vnd.oasis.opendocument.spreadsheet-flat-xml"], 132 "fodg": ["application/vnd.oasis.opendocument.graphics-flat-xml"], 133 "fodp": ["application/vnd.oasis.opendocument.presentation-flat-xml"], 134 "oga": ["audio/ogg"], 135 "ogg": ["audio/ogg"], 136 "ogv": ["video/ogg"], 137 "one": ["application/msonenote"], 138 "opus": ["audio/ogg"], 139 "orf": ["image/x-dcraw"], 140 "org": ["text/org", "text/plain"], 141 "otf": ["application/font-sfnt"], 142 "pages": ["application/x-iwork-pages-sffpages"], 143 "pdf": ["application/pdf"], 144 "pfb": ["application/x-font"], 145 "pef": ["image/x-dcraw"], 146 "php": ["application/x-php", "text/x-php"], 147 "pl": ["application/x-perl"], 148 "pls": ["audio/x-scpls"], 149 "png": ["image/png"], 150 "pot": ["application/vnd.ms-powerpoint"], 151 "potm": ["application/vnd.ms-powerpoint.template.macroEnabled.12"], 152 "potx": ["application/vnd.openxmlformats-officedocument.presentationml.template"], 153 "ppa": ["application/vnd.ms-powerpoint"], 154 "ppam": ["application/vnd.ms-powerpoint.addin.macroEnabled.12"], 155 "pps": ["application/vnd.ms-powerpoint"], 156 "ppsm": ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"], 157 "ppsx": ["application/vnd.openxmlformats-officedocument.presentationml.slideshow"], 158 "ppt": ["application/vnd.ms-powerpoint"], 159 "pptm": ["application/vnd.ms-powerpoint.presentation.macroEnabled.12"], 160 "pptx": ["application/vnd.openxmlformats-officedocument.presentationml.presentation"], 161 "ps": ["application/postscript"], 162 "psd": ["application/x-photoshop"], 163 "py": ["text/x-python"], 164 "raf": ["image/x-dcraw"], 165 "rar": ["application/x-rar-compressed"], 166 "reveal": ["text/reveal"], 167 "rss": ["application/rss+xml"], 168 "rtf": ["text/rtf"], 169 "rw2": ["image/x-dcraw"], 170 "schema": ["text/plain"], 171 "sgf": ["application/sgf"], 172 "sgi": ["image/sgi"], 173 "sh-lib": ["text/x-shellscript"], 174 "sh": ["text/x-shellscript"], 175 "srf": ["image/x-dcraw"], 176 "sr2": ["image/x-dcraw"], 177 "svg": ["image/svg+xml", "text/plain"], 178 "swf": ["application/x-shockwave-flash", "application/octet-stream"], 179 "tar": ["application/x-tar"], 180 "tar.bz2": ["application/x-bzip2"], 181 "tar.gz": ["application/x-compressed"], 182 "tbz2": ["application/x-bzip2"], 183 "tcx": ["application/vnd.garmin.tcx+xml"], 184 "tex": ["application/x-tex"], 185 "tga": ["image/tga"], 186 "tgz": ["application/x-compressed"], 187 "tiff": ["image/tiff"], 188 "tif": ["image/tiff"], 189 "ttf": ["application/font-sfnt"], 190 "txt": ["text/plain"], 191 "vcard": ["text/vcard"], 192 "vcf": ["text/vcard"], 193 "vob": ["video/dvd"], 194 "vsd": ["application/vnd.visio"], 195 "vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"], 196 "vsdx": ["application/vnd.ms-visio.drawing"], 197 "vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"], 198 "vssx": ["application/vnd.ms-visio.stencil"], 199 "vstm": ["application/vnd.ms-visio.template.macroEnabled.12"], 200 "vstx": ["application/vnd.ms-visio.template"], 201 "wav": ["audio/wav"], 202 "webm": ["video/webm"], 203 "webp": ["image/webp"], 204 "woff": ["application/font-woff"], 205 "wpd": ["application/vnd.wordperfect"], 206 "wmv": ["video/x-ms-wmv"], 207 "xcf": ["application/x-gimp"], 208 "xla": ["application/vnd.ms-excel"], 209 "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"], 210 "xls": ["application/vnd.ms-excel"], 211 "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"], 212 "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"], 213 "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"], 214 "xlt": ["application/vnd.ms-excel"], 215 "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"], 216 "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"], 217 "xmind": ["application/vnd.xmind.workbook"], 218 "xml": ["application/xml", "text/plain"], 219 "xrf": ["image/x-dcraw"], 220 "yaml": ["application/yaml", "text/plain"], 221 "yml": ["application/yaml", "text/plain"], 222 "zip": ["application/zip"], 223 "url": ["application/internet-shortcut"], 224 "webloc": ["application/internet-shortcut"] 225} 226