mimetypemapping.dist.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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/x-cbr"],
  22. "cba": ["application/x-cbr"],
  23. "cbr": ["application/x-cbr"],
  24. "cbt": ["application/x-cbr"],
  25. "cbtc": ["application/x-cbr"],
  26. "cbz": ["application/x-cbr"],
  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. "hh": ["text/x-h"],
  63. "hpp": ["text/x-h"],
  64. "htaccess": ["text/plain"],
  65. "html": ["text/html", "text/plain"],
  66. "htm": ["text/html", "text/plain"],
  67. "ical": ["text/calendar"],
  68. "ics": ["text/calendar"],
  69. "iiq": ["image/x-dcraw"],
  70. "impress": ["text/impress"],
  71. "java": ["text/x-java-source"],
  72. "jp2": ["image/jp2"],
  73. "jpeg": ["image/jpeg"],
  74. "jpg": ["image/jpeg"],
  75. "jps": ["image/jpeg"],
  76. "js": ["application/javascript", "text/plain"],
  77. "json": ["application/json", "text/plain"],
  78. "k25": ["image/x-dcraw"],
  79. "kdc": ["image/x-dcraw"],
  80. "key": ["application/x-iwork-keynote-sffkey"],
  81. "keynote": ["application/x-iwork-keynote-sffkey"],
  82. "kml": ["application/vnd.google-earth.kml+xml"],
  83. "kmz": ["application/vnd.google-earth.kmz"],
  84. "kra": ["application/x-krita"],
  85. "ldif": ["text/x-ldif"],
  86. "lwp": ["application/vnd.lotus-wordpro"],
  87. "m2t": ["video/mp2t"],
  88. "m4a": ["audio/mp4"],
  89. "m4b": ["audio/m4b"],
  90. "m4v": ["video/mp4"],
  91. "markdown": ["text/markdown"],
  92. "mdown": ["text/markdown"],
  93. "md": ["text/markdown"],
  94. "mdb": ["application/msaccess"],
  95. "mdwn": ["text/markdown"],
  96. "mkd": ["text/markdown"],
  97. "mef": ["image/x-dcraw"],
  98. "mkv": ["video/x-matroska"],
  99. "mobi": ["application/x-mobipocket-ebook"],
  100. "mov": ["video/quicktime"],
  101. "mp3": ["audio/mpeg"],
  102. "mp4": ["video/mp4"],
  103. "mpeg": ["video/mpeg"],
  104. "mpg": ["video/mpeg"],
  105. "mpo": ["image/jpeg"],
  106. "msi": ["application/x-msi"],
  107. "mts": ["video/MP2T"],
  108. "mt2s": ["video/MP2T"],
  109. "nef": ["image/x-dcraw"],
  110. "numbers": ["application/x-iwork-numbers-sffnumbers"],
  111. "odf": ["application/vnd.oasis.opendocument.formula"],
  112. "odg": ["application/vnd.oasis.opendocument.graphics"],
  113. "odp": ["application/vnd.oasis.opendocument.presentation"],
  114. "ods": ["application/vnd.oasis.opendocument.spreadsheet"],
  115. "odt": ["application/vnd.oasis.opendocument.text"],
  116. "oga": ["audio/ogg"],
  117. "ogg": ["audio/ogg"],
  118. "ogv": ["video/ogg"],
  119. "one": ["application/msonenote"],
  120. "opus": ["audio/ogg"],
  121. "orf": ["image/x-dcraw"],
  122. "otf": ["application/font-sfnt"],
  123. "pages": ["application/x-iwork-pages-sffpages"],
  124. "pdf": ["application/pdf"],
  125. "pfb": ["application/x-font"],
  126. "pef": ["image/x-dcraw"],
  127. "php": ["application/x-php"],
  128. "pl": ["application/x-perl"],
  129. "png": ["image/png"],
  130. "pot": ["application/vnd.ms-powerpoint"],
  131. "potm": ["application/vnd.ms-powerpoint.template.macroEnabled.12"],
  132. "potx": ["application/vnd.openxmlformats-officedocument.presentationml.template"],
  133. "ppa": ["application/vnd.ms-powerpoint"],
  134. "ppam": ["application/vnd.ms-powerpoint.addin.macroEnabled.12"],
  135. "pps": ["application/vnd.ms-powerpoint"],
  136. "ppsm": ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
  137. "ppsx": ["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
  138. "ppt": ["application/vnd.ms-powerpoint"],
  139. "pptm": ["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
  140. "pptx": ["application/vnd.openxmlformats-officedocument.presentationml.presentation"],
  141. "ps": ["application/postscript"],
  142. "psd": ["application/x-photoshop"],
  143. "py": ["text/x-python"],
  144. "raf": ["image/x-dcraw"],
  145. "rar": ["application/x-rar-compressed"],
  146. "reveal": ["text/reveal"],
  147. "rss": ["application/rss+xml"],
  148. "rtf": ["text/rtf"],
  149. "rw2": ["image/x-dcraw"],
  150. "schema": ["text/plain"],
  151. "sgf": ["application/sgf"],
  152. "sh-lib": ["text/x-shellscript"],
  153. "sh": ["text/x-shellscript"],
  154. "srf": ["image/x-dcraw"],
  155. "sr2": ["image/x-dcraw"],
  156. "svg": ["image/svg+xml", "text/plain"],
  157. "swf": ["application/x-shockwave-flash", "application/octet-stream"],
  158. "tar": ["application/x-tar"],
  159. "tar.bz2": ["application/x-bzip2"],
  160. "tar.gz": ["application/x-compressed"],
  161. "tbz2": ["application/x-bzip2"],
  162. "tcx": ["application/vnd.garmin.tcx+xml"],
  163. "tex": ["application/x-tex"],
  164. "tgz": ["application/x-compressed"],
  165. "tiff": ["image/tiff"],
  166. "tif": ["image/tiff"],
  167. "ttf": ["application/font-sfnt"],
  168. "txt": ["text/plain"],
  169. "vcard": ["text/vcard"],
  170. "vcf": ["text/vcard"],
  171. "vob": ["video/dvd"],
  172. "vsd": ["application/vnd.visio"],
  173. "wav": ["audio/wav"],
  174. "webm": ["video/webm"],
  175. "webp": ["image/webp"],
  176. "woff": ["application/font-woff"],
  177. "wpd": ["application/vnd.wordperfect"],
  178. "wmv": ["video/x-ms-wmv"],
  179. "xcf": ["application/x-gimp"],
  180. "xla": ["application/vnd.ms-excel"],
  181. "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"],
  182. "xls": ["application/vnd.ms-excel"],
  183. "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
  184. "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"],
  185. "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
  186. "xlt": ["application/vnd.ms-excel"],
  187. "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"],
  188. "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
  189. "xml": ["application/xml", "text/plain"],
  190. "xrf": ["image/x-dcraw"],
  191. "yaml": ["application/yaml", "text/plain"],
  192. "yml": ["application/yaml", "text/plain"],
  193. "zip": ["application/zip"]
  194. }