mimetypemapping.dist.json 8.4 KB

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