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 6.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. "blend": ["application/x-blender"],
  16. "bin": ["application/x-bin"],
  17. "bmp": ["image/bmp"],
  18. "bpg": ["image/bpg"],
  19. "bz2": ["application/x-bzip2"],
  20. "cb7": ["application/x-cbr"],
  21. "cba": ["application/x-cbr"],
  22. "cbr": ["application/x-cbr"],
  23. "cbt": ["application/x-cbr"],
  24. "cbtc": ["application/x-cbr"],
  25. "cbz": ["application/x-cbr"],
  26. "cc": ["text/x-c"],
  27. "cdr": ["application/coreldraw"],
  28. "class": ["application/java"],
  29. "cnf": ["text/plain"],
  30. "conf": ["text/plain"],
  31. "cpp": ["text/x-c++src"],
  32. "cr2": ["image/x-dcraw"],
  33. "css": ["text/css"],
  34. "csv": ["text/csv"],
  35. "cvbdl": ["application/x-cbr"],
  36. "c": ["text/x-c"],
  37. "c++": ["text/x-c++src"],
  38. "dcr": ["image/x-dcraw"],
  39. "deb": ["application/x-deb"],
  40. "dng": ["image/x-dcraw"],
  41. "doc": ["application/msword"],
  42. "docm": ["application/vnd.ms-word.document.macroEnabled.12"],
  43. "docx": ["application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
  44. "dot": ["application/msword"],
  45. "dotx": ["application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
  46. "dv": ["video/dv"],
  47. "eot": ["application/vnd.ms-fontobject"],
  48. "epub": ["application/epub+zip"],
  49. "eps": ["application/postscript"],
  50. "erf": ["image/x-dcraw"],
  51. "exe": ["application/x-ms-dos-executable"],
  52. "fb2": ["application/x-fictionbook+xml", "text/plain"],
  53. "flac": ["audio/flac"],
  54. "flv": ["video/x-flv"],
  55. "gif": ["image/gif"],
  56. "gz": ["application/x-gzip"],
  57. "gzip": ["application/x-gzip"],
  58. "h": ["text/x-h"],
  59. "hh": ["text/x-h"],
  60. "hpp": ["text/x-h"],
  61. "html": ["text/html", "text/plain"],
  62. "htm": ["text/html", "text/plain"],
  63. "ical": ["text/calendar"],
  64. "ics": ["text/calendar"],
  65. "iiq": ["image/x-dcraw"],
  66. "impress": ["text/impress"],
  67. "java": ["text/x-java-source"],
  68. "jpeg": ["image/jpeg"],
  69. "jpg": ["image/jpeg"],
  70. "jps": ["image/jpeg"],
  71. "js": ["application/javascript", "text/plain"],
  72. "json": ["application/json", "text/plain"],
  73. "k25": ["image/x-dcraw"],
  74. "kdc": ["image/x-dcraw"],
  75. "key": ["application/x-iwork-keynote-sffkey"],
  76. "keynote": ["application/x-iwork-keynote-sffkey"],
  77. "kra": ["application/x-krita"],
  78. "ldif": ["text/x-ldif"],
  79. "lwp": ["application/vnd.lotus-wordpro"],
  80. "m2t": ["video/mp2t"],
  81. "m4a": ["audio/mp4"],
  82. "m4b": ["audio/m4b"],
  83. "m4v": ["video/mp4"],
  84. "markdown": ["text/markdown"],
  85. "mdown": ["text/markdown"],
  86. "md": ["text/markdown"],
  87. "mdb": ["application/msaccess"],
  88. "mdwn": ["text/markdown"],
  89. "mkd": ["text/markdown"],
  90. "mef": ["image/x-dcraw"],
  91. "mkv": ["video/x-matroska"],
  92. "mobi": ["application/x-mobipocket-ebook"],
  93. "mov": ["video/quicktime"],
  94. "mp3": ["audio/mpeg"],
  95. "mp4": ["video/mp4"],
  96. "mpeg": ["video/mpeg"],
  97. "mpg": ["video/mpeg"],
  98. "mpo": ["image/jpeg"],
  99. "msi": ["application/x-msi"],
  100. "mts": ["video/MP2T"],
  101. "mt2s": ["video/MP2T"],
  102. "nef": ["image/x-dcraw"],
  103. "numbers": ["application/x-iwork-numbers-sffnumbers"],
  104. "odf": ["application/vnd.oasis.opendocument.formula"],
  105. "odg": ["application/vnd.oasis.opendocument.graphics"],
  106. "odp": ["application/vnd.oasis.opendocument.presentation"],
  107. "ods": ["application/vnd.oasis.opendocument.spreadsheet"],
  108. "odt": ["application/vnd.oasis.opendocument.text"],
  109. "oga": ["audio/ogg"],
  110. "ogg": ["audio/ogg"],
  111. "ogv": ["video/ogg"],
  112. "one": ["application/msonenote"],
  113. "opus": ["audio/ogg"],
  114. "orf": ["image/x-dcraw"],
  115. "otf": ["application/font-sfnt"],
  116. "pages": ["application/x-iwork-pages-sffpages"],
  117. "pdf": ["application/pdf"],
  118. "pfb": ["application/x-font"],
  119. "pef": ["image/x-dcraw"],
  120. "php": ["application/x-php"],
  121. "pl": ["application/x-perl"],
  122. "png": ["image/png"],
  123. "pot": ["application/vnd.ms-powerpoint"],
  124. "potm": ["application/vnd.ms-powerpoint.template.macroEnabled.12"],
  125. "potx": ["application/vnd.openxmlformats-officedocument.presentationml.template"],
  126. "ppa": ["application/vnd.ms-powerpoint"],
  127. "ppam": ["application/vnd.ms-powerpoint.addin.macroEnabled.12"],
  128. "pps": ["application/vnd.ms-powerpoint"],
  129. "ppsm": ["application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
  130. "ppsx": ["application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
  131. "ppt": ["application/vnd.ms-powerpoint"],
  132. "pptm": ["application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
  133. "pptx": ["application/vnd.openxmlformats-officedocument.presentationml.presentation"],
  134. "ps": ["application/postscript"],
  135. "psd": ["application/x-photoshop"],
  136. "py": ["text/x-python"],
  137. "raf": ["image/x-dcraw"],
  138. "rar": ["application/x-rar-compressed"],
  139. "reveal": ["text/reveal"],
  140. "rss": ["application/rss+xml"],
  141. "rtf": ["text/rtf"],
  142. "rw2": ["image/x-dcraw"],
  143. "schema": ["text/plain"],
  144. "sgf": ["application/sgf"],
  145. "sh-lib": ["text/x-shellscript"],
  146. "sh": ["text/x-shellscript"],
  147. "srf": ["image/x-dcraw"],
  148. "sr2": ["image/x-dcraw"],
  149. "svg": ["image/svg+xml", "text/plain"],
  150. "swf": ["application/x-shockwave-flash", "application/octet-stream"],
  151. "tar": ["application/x-tar"],
  152. "tar.bz2": ["application/x-bzip2"],
  153. "tar.gz": ["application/x-compressed"],
  154. "tbz2": ["application/x-bzip2"],
  155. "tex": ["application/x-tex"],
  156. "tgz": ["application/x-compressed"],
  157. "tiff": ["image/tiff"],
  158. "tif": ["image/tiff"],
  159. "ttf": ["application/font-sfnt"],
  160. "txt": ["text/plain"],
  161. "vcard": ["text/vcard"],
  162. "vcf": ["text/vcard"],
  163. "vob": ["video/dvd"],
  164. "vsd": ["application/vnd.visio"],
  165. "wav": ["audio/wav"],
  166. "webm": ["video/webm"],
  167. "woff": ["application/font-woff"],
  168. "wpd": ["application/vnd.wordperfect"],
  169. "wmv": ["video/x-ms-wmv"],
  170. "xcf": ["application/x-gimp"],
  171. "xla": ["application/vnd.ms-excel"],
  172. "xlam": ["application/vnd.ms-excel.addin.macroEnabled.12"],
  173. "xls": ["application/vnd.ms-excel"],
  174. "xlsb": ["application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
  175. "xlsm": ["application/vnd.ms-excel.sheet.macroEnabled.12"],
  176. "xlsx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
  177. "xlt": ["application/vnd.ms-excel"],
  178. "xltm": ["application/vnd.ms-excel.template.macroEnabled.12"],
  179. "xltx": ["application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
  180. "xml": ["application/xml", "text/plain"],
  181. "xrf": ["image/x-dcraw"],
  182. "yaml": ["application/yaml", "text/plain"],
  183. "yml": ["application/yaml", "text/plain"],
  184. "zip": ["application/zip"]
  185. }