mimetypemapping.dist.json 6.8 KB

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