mimetypemapping.dist.json 9.0 KB

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