mimetypemapping.dist.json 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. "kdc": ["image/x-dcraw"],
  82. "key": ["application/x-iwork-keynote-sffkey"],
  83. "keynote": ["application/x-iwork-keynote-sffkey"],
  84. "kml": ["application/vnd.google-earth.kml+xml"],
  85. "kmz": ["application/vnd.google-earth.kmz"],
  86. "kra": ["application/x-krita"],
  87. "ldif": ["text/x-ldif"],
  88. "lwp": ["application/vnd.lotus-wordpro"],
  89. "m2t": ["video/mp2t"],
  90. "m3u": ["audio/mpegurl"],
  91. "m3u8": ["audio/mpegurl"],
  92. "m4a": ["audio/mp4"],
  93. "m4b": ["audio/m4b"],
  94. "m4v": ["video/mp4"],
  95. "markdown": ["text/markdown"],
  96. "mdown": ["text/markdown"],
  97. "md": ["text/markdown"],
  98. "mdb": ["application/msaccess"],
  99. "mdwn": ["text/markdown"],
  100. "mkd": ["text/markdown"],
  101. "mef": ["image/x-dcraw"],
  102. "mkv": ["video/x-matroska"],
  103. "mobi": ["application/x-mobipocket-ebook"],
  104. "mov": ["video/quicktime"],
  105. "mp3": ["audio/mpeg"],
  106. "mp4": ["video/mp4"],
  107. "mpeg": ["video/mpeg"],
  108. "mpg": ["video/mpeg"],
  109. "mpo": ["image/jpeg"],
  110. "msi": ["application/x-msi"],
  111. "mts": ["video/MP2T"],
  112. "mt2s": ["video/MP2T"],
  113. "nef": ["image/x-dcraw"],
  114. "numbers": ["application/x-iwork-numbers-sffnumbers"],
  115. "odf": ["application/vnd.oasis.opendocument.formula"],
  116. "odg": ["application/vnd.oasis.opendocument.graphics"],
  117. "odp": ["application/vnd.oasis.opendocument.presentation"],
  118. "ods": ["application/vnd.oasis.opendocument.spreadsheet"],
  119. "odt": ["application/vnd.oasis.opendocument.text"],
  120. "oga": ["audio/ogg"],
  121. "ogg": ["audio/ogg"],
  122. "ogv": ["video/ogg"],
  123. "one": ["application/msonenote"],
  124. "opus": ["audio/ogg"],
  125. "orf": ["image/x-dcraw"],
  126. "otf": ["application/font-sfnt"],
  127. "pages": ["application/x-iwork-pages-sffpages"],
  128. "pdf": ["application/pdf"],
  129. "pfb": ["application/x-font"],
  130. "pef": ["image/x-dcraw"],
  131. "php": ["application/x-php"],
  132. "pl": ["application/x-perl"],
  133. "pls": ["audio/x-scpls"],
  134. "png": ["image/png"],
  135. "pot": ["application/vnd.ms-powerpoint"],
  136. "potm": ["application/vnd.ms-powerpoint.template.macroEnabled.12"],
  137. "potx": ["application/vnd.openxmlformats-officedocument.presentationml.template"],
  138. "ppa": ["application/vnd.ms-powerpoint"],
  139. "ppam": ["application/vnd.ms-powerpoint.addin.macroEnabled.12"],
  140. "pps": ["application/vnd.ms-powerpoint"],
  141. "ppsm": ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
  142. "ppsx": ["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
  143. "ppt": ["application/vnd.ms-powerpoint"],
  144. "pptm": ["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
  145. "pptx": ["application/vnd.openxmlformats-officedocument.presentationml.presentation"],
  146. "ps": ["application/postscript"],
  147. "psd": ["application/x-photoshop"],
  148. "py": ["text/x-python"],
  149. "raf": ["image/x-dcraw"],
  150. "rar": ["application/x-rar-compressed"],
  151. "reveal": ["text/reveal"],
  152. "rss": ["application/rss+xml"],
  153. "rtf": ["text/rtf"],
  154. "rw2": ["image/x-dcraw"],
  155. "schema": ["text/plain"],
  156. "sgf": ["application/sgf"],
  157. "sh-lib": ["text/x-shellscript"],
  158. "sh": ["text/x-shellscript"],
  159. "srf": ["image/x-dcraw"],
  160. "sr2": ["image/x-dcraw"],
  161. "svg": ["image/svg+xml", "text/plain"],
  162. "swf": ["application/x-shockwave-flash", "application/octet-stream"],
  163. "tar": ["application/x-tar"],
  164. "tar.bz2": ["application/x-bzip2"],
  165. "tar.gz": ["application/x-compressed"],
  166. "tbz2": ["application/x-bzip2"],
  167. "tcx": ["application/vnd.garmin.tcx+xml"],
  168. "tex": ["application/x-tex"],
  169. "tgz": ["application/x-compressed"],
  170. "tiff": ["image/tiff"],
  171. "tif": ["image/tiff"],
  172. "ttf": ["application/font-sfnt"],
  173. "txt": ["text/plain"],
  174. "vcard": ["text/vcard"],
  175. "vcf": ["text/vcard"],
  176. "vob": ["video/dvd"],
  177. "vsd": ["application/vnd.visio"],
  178. "vsdm": ["application/vnd.ms-visio.drawing.macroEnabled.12"],
  179. "vsdx": ["application/vnd.ms-visio.drawing"],
  180. "vssm": ["application/vnd.ms-visio.stencil.macroEnabled.12"],
  181. "vssx": ["application/vnd.ms-visio.stencil"],
  182. "vstm": ["application/vnd.ms-visio.template.macroEnabled.12"],
  183. "vstx": ["application/vnd.ms-visio.template"],
  184. "wav": ["audio/wav"],
  185. "webm": ["video/webm"],
  186. "webp": ["image/webp"],
  187. "woff": ["application/font-woff"],
  188. "wpd": ["application/vnd.wordperfect"],
  189. "wmv": ["video/x-ms-wmv"],
  190. "xcf": ["application/x-gimp"],
  191. "xla": ["application/vnd.ms-excel"],
  192. "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"],
  193. "xls": ["application/vnd.ms-excel"],
  194. "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
  195. "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"],
  196. "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
  197. "xlt": ["application/vnd.ms-excel"],
  198. "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"],
  199. "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
  200. "xml": ["application/xml", "text/plain"],
  201. "xrf": ["image/x-dcraw"],
  202. "yaml": ["application/yaml", "text/plain"],
  203. "yml": ["application/yaml", "text/plain"],
  204. "zip": ["application/zip"],
  205. "url": ["application/internet-shortcut"],
  206. "webloc": ["application/internet-shortcut"]
  207. }