mimetypemapping.dist.json 6.6 KB

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