mimetypemapping.dist.json 8.9 KB

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