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.5KB

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