You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mimetypemapping.dist.json 8.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  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. "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. "wmv": ["video/x-ms-wmv"],
  214. "woff": ["application/font-woff"],
  215. "wpd": ["application/vnd.wordperfect"],
  216. "xcf": ["application/x-gimp"],
  217. "xla": ["application/vnd.ms-excel"],
  218. "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"],
  219. "xls": ["application/vnd.ms-excel"],
  220. "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
  221. "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"],
  222. "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
  223. "xlt": ["application/vnd.ms-excel"],
  224. "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"],
  225. "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
  226. "xmind": ["application/vnd.xmind.workbook"],
  227. "xml": ["application/xml", "text/plain"],
  228. "xrf": ["image/x-dcraw"],
  229. "yaml": ["application/yaml", "text/plain"],
  230. "yml": ["application/yaml", "text/plain"],
  231. "zip": ["application/zip"]
  232. }