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

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