mimetypemapping.dist.json 8.0 KB

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