mimetypemapping.dist.json 8.8 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. "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. "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. "rst": ["text/x-rst"],
  175. "rtf": ["text/rtf"],
  176. "rw2": ["image/x-dcraw"],
  177. "schema": ["text/plain"],
  178. "sgf": ["application/sgf"],
  179. "sgi": ["image/sgi"],
  180. "sh-lib": ["text/x-shellscript"],
  181. "sh": ["text/x-shellscript"],
  182. "sr2": ["image/x-dcraw"],
  183. "srf": ["image/x-dcraw"],
  184. "svg": ["image/svg+xml", "text/plain"],
  185. "swf": ["application/x-shockwave-flash", "application/octet-stream"],
  186. "tar.bz2": ["application/x-bzip2"],
  187. "tar.gz": ["application/x-compressed"],
  188. "tar": ["application/x-tar"],
  189. "tbz2": ["application/x-bzip2"],
  190. "tcx": ["application/vnd.garmin.tcx+xml"],
  191. "tex": ["application/x-tex"],
  192. "tga": ["image/tga"],
  193. "tgz": ["application/x-compressed"],
  194. "tif": ["image/tiff"],
  195. "tiff": ["image/tiff"],
  196. "ttf": ["application/font-sfnt"],
  197. "txt": ["text/plain"],
  198. "url": ["application/internet-shortcut"],
  199. "vcard": ["text/vcard"],
  200. "vcf": ["text/vcard"],
  201. "vob": ["video/dvd"],
  202. "vsd": ["application/vnd.visio"],
  203. "vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"],
  204. "vsdx": ["application/vnd.ms-visio.drawing"],
  205. "vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"],
  206. "vssx": ["application/vnd.ms-visio.stencil"],
  207. "vstm": ["application/vnd.ms-visio.template.macroEnabled.12"],
  208. "vstx": ["application/vnd.ms-visio.template"],
  209. "wav": ["audio/wav"],
  210. "weba": ["audio/webm"],
  211. "webloc": ["application/internet-shortcut"],
  212. "webm": ["video/webm"],
  213. "webp": ["image/webp"],
  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. }