mimetypemapping.dist.json 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. "numbers": ["application/x-iwork-numbers-sffnumbers"],
  131. "odf": ["application/vnd.oasis.opendocument.formula"],
  132. "odg": ["application/vnd.oasis.opendocument.graphics"],
  133. "odp": ["application/vnd.oasis.opendocument.presentation"],
  134. "ods": ["application/vnd.oasis.opendocument.spreadsheet"],
  135. "odt": ["application/vnd.oasis.opendocument.text"],
  136. "oform": ["application/vnd.openxmlformats-officedocument.wordprocessingml.document.oform"],
  137. "oga": ["audio/ogg"],
  138. "ogg": ["audio/ogg"],
  139. "ogv": ["video/ogg"],
  140. "one": ["application/msonenote"],
  141. "opus": ["audio/ogg"],
  142. "orf": ["image/x-dcraw"],
  143. "org": ["text/org", "text/plain"],
  144. "otf": ["application/font-sfnt"],
  145. "otg": ["application/vnd.oasis.opendocument.graphics-template"],
  146. "otp": ["application/vnd.oasis.opendocument.presentation-template"],
  147. "ots": ["application/vnd.oasis.opendocument.spreadsheet-template"],
  148. "ott": ["application/vnd.oasis.opendocument.text-template"],
  149. "pages": ["application/x-iwork-pages-sffpages"],
  150. "pdf": ["application/pdf"],
  151. "pef": ["image/x-dcraw"],
  152. "pfb": ["application/x-font"],
  153. "php": ["application/x-php", "text/x-php"],
  154. "pl": ["application/x-perl"],
  155. "pls": ["audio/x-scpls"],
  156. "png": ["image/png"],
  157. "pot": ["application/vnd.ms-powerpoint"],
  158. "potm": ["application/vnd.ms-powerpoint.template.macroEnabled.12"],
  159. "potx": ["application/vnd.openxmlformats-officedocument.presentationml.template"],
  160. "ppa": ["application/vnd.ms-powerpoint"],
  161. "ppam": ["application/vnd.ms-powerpoint.addin.macroEnabled.12"],
  162. "pps": ["application/vnd.ms-powerpoint"],
  163. "ppsm": ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
  164. "ppsx": ["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
  165. "ppt": ["application/vnd.ms-powerpoint"],
  166. "pptm": ["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
  167. "pptx": ["application/vnd.openxmlformats-officedocument.presentationml.presentation"],
  168. "ps": ["application/postscript"],
  169. "psd": ["application/x-photoshop"],
  170. "py": ["text/x-python"],
  171. "raf": ["image/x-dcraw"],
  172. "rar": ["application/x-rar-compressed"],
  173. "reveal": ["text/reveal"],
  174. "rss": ["application/rss+xml"],
  175. "rst": ["text/x-rst"],
  176. "rtf": ["text/rtf"],
  177. "rw2": ["image/x-dcraw"],
  178. "schema": ["text/plain"],
  179. "sgf": ["application/sgf"],
  180. "sgi": ["image/sgi"],
  181. "sh-lib": ["text/x-shellscript"],
  182. "sh": ["text/x-shellscript"],
  183. "sr2": ["image/x-dcraw"],
  184. "srf": ["image/x-dcraw"],
  185. "svg": ["image/svg+xml", "text/plain"],
  186. "swf": ["application/x-shockwave-flash", "application/octet-stream"],
  187. "tar.bz2": ["application/x-bzip2"],
  188. "tar.gz": ["application/x-compressed"],
  189. "tar": ["application/x-tar"],
  190. "tbz2": ["application/x-bzip2"],
  191. "tcx": ["application/vnd.garmin.tcx+xml"],
  192. "tex": ["application/x-tex"],
  193. "tga": ["image/tga"],
  194. "tgz": ["application/x-compressed"],
  195. "tif": ["image/tiff"],
  196. "tiff": ["image/tiff"],
  197. "ttf": ["application/font-sfnt"],
  198. "txt": ["text/plain"],
  199. "url": ["application/internet-shortcut"],
  200. "vcard": ["text/vcard"],
  201. "vcf": ["text/vcard"],
  202. "vob": ["video/dvd"],
  203. "vsd": ["application/vnd.visio"],
  204. "vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"],
  205. "vsdx": ["application/vnd.ms-visio.drawing"],
  206. "vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"],
  207. "vssx": ["application/vnd.ms-visio.stencil"],
  208. "vstm": ["application/vnd.ms-visio.template.macroEnabled.12"],
  209. "vstx": ["application/vnd.ms-visio.template"],
  210. "wav": ["audio/wav"],
  211. "weba": ["audio/webm"],
  212. "webloc": ["application/internet-shortcut"],
  213. "webm": ["video/webm"],
  214. "webp": ["image/webp"],
  215. "whiteboard": ["application/vnd.excalidraw+json"],
  216. "wmv": ["video/x-ms-wmv"],
  217. "woff": ["application/font-woff"],
  218. "wpd": ["application/vnd.wordperfect"],
  219. "xcf": ["application/x-gimp"],
  220. "xla": ["application/vnd.ms-excel"],
  221. "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"],
  222. "xls": ["application/vnd.ms-excel"],
  223. "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
  224. "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"],
  225. "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
  226. "xlt": ["application/vnd.ms-excel"],
  227. "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"],
  228. "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
  229. "xmind": ["application/vnd.xmind.workbook"],
  230. "xml": ["application/xml", "text/plain"],
  231. "xrf": ["image/x-dcraw"],
  232. "yaml": ["application/yaml", "text/plain"],
  233. "yml": ["application/yaml", "text/plain"],
  234. "zip": ["application/zip"]
  235. }