Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
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.

1082 lines
39 KiB

  1. <?php
  2. function z_mime_content_type($filename) {
  3. $mime_types = array(
  4. /*'txt' => 'text/plain',
  5. 'htm' => 'text/html',
  6. 'html' => 'text/html',
  7. 'php' => 'text/html',
  8. 'css' => 'text/css',
  9. 'js' => 'application/javascript',
  10. 'json' => 'application/json',
  11. 'xml' => 'application/xml',
  12. 'swf' => 'application/x-shockwave-flash',
  13. 'flv' => 'video/x-flv',
  14. // images
  15. 'png' => 'image/png',
  16. 'jpe' => 'image/jpeg',
  17. 'jpeg' => 'image/jpeg',
  18. 'jpg' => 'image/jpeg',
  19. 'gif' => 'image/gif',
  20. 'bmp' => 'image/bmp',
  21. 'ico' => 'image/vnd.microsoft.icon',
  22. 'tiff' => 'image/tiff',
  23. 'tif' => 'image/tiff',
  24. 'svg' => 'image/svg+xml',
  25. 'svgz' => 'image/svg+xml',
  26. // archives
  27. 'zip' => 'application/zip',
  28. 'rar' => 'application/x-rar-compressed',
  29. 'exe' => 'application/x-msdownload',
  30. 'msi' => 'application/x-msdownload',
  31. 'cab' => 'application/vnd.ms-cab-compressed',
  32. // audio/video
  33. 'mp3' => 'audio/mpeg',
  34. 'wav' => 'audio/wav',
  35. 'qt' => 'video/quicktime',
  36. 'mov' => 'video/quicktime',
  37. 'ogg' => 'application/ogg',
  38. 'mp4' => 'video/mp4',
  39. 'avi' => 'video/x-msvideo',
  40. 'wmv' => 'video/x-ms-wmv',
  41. 'wma' => 'audio/x-ms-wma',
  42. // adobe
  43. 'pdf' => 'application/pdf',
  44. 'psd' => 'image/vnd.adobe.photoshop',
  45. 'ai' => 'application/postscript',
  46. 'eps' => 'application/postscript',
  47. 'ps' => 'application/postscript',
  48. // ms office
  49. 'doc' => 'application/msword',
  50. 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  51. 'rtf' => 'application/rtf',
  52. 'xls' => 'application/vnd.ms-excel',
  53. 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  54. 'ppt' => 'application/vnd.ms-powerpoint',
  55. 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  56. // open office
  57. 'odt' => 'application/vnd.oasis.opendocument.text',
  58. 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',*/
  59. // Assembled from the original Friendica list and
  60. // lists from http://www.freeformatter.com/mime-types-list.html
  61. // and http://www.webmaster-toolkit.com/mime-types.shtml
  62. '123' => 'application/vnd.lotus-1-2-3',
  63. '3dm' => 'x-world/x-3dmf',
  64. '3dmf' => 'x-world/x-3dmf',
  65. '3dml' => 'text/vnd.in3d.3dml',
  66. '3g2' => 'video/3gpp2',
  67. '3gp' => 'video/3gpp',
  68. '7z' => 'application/x-7z-compressed',
  69. 'a' => 'application/octet-stream',
  70. 'aab' => 'application/x-authorware-bin',
  71. 'aac' => 'audio/x-aac',
  72. 'aam' => 'application/x-authorware-map',
  73. 'aas' => 'application/x-authorware-seg',
  74. 'abc' => 'text/vnd.abc',
  75. 'abw' => 'application/x-abiword',
  76. 'ac' => 'application/pkix-attr-cert',
  77. 'acc' => 'application/vnd.americandynamics.acc',
  78. 'ace' => 'application/x-ace-compressed',
  79. 'acgi' => 'text/html',
  80. 'acu' => 'application/vnd.acucobol',
  81. 'adp' => 'audio/adpcm',
  82. 'aep' => 'application/vnd.audiograph',
  83. 'afl' => 'video/animaflex',
  84. 'afp' => 'application/vnd.ibm.modcap',
  85. 'ahead' => 'application/vnd.ahead.space',
  86. 'ai' => 'application/postscript',
  87. 'aif' => 'audio/x-aiff',
  88. 'aifc' => 'audio/x-aiff',
  89. 'aiff' => 'audio/x-aiff',
  90. 'aim' => 'application/x-aim',
  91. 'aip' => 'text/x-audiosoft-intra',
  92. 'air' => 'application/vnd.adobe.air-application-installer-package+zip',
  93. 'ait' => 'application/vnd.dvb.ait',
  94. 'ami' => 'application/vnd.amiga.ami',
  95. 'ani' => 'application/x-navi-animation',
  96. 'aos' => 'application/x-nokia-9000-communicator-add-on-software',
  97. 'apk' => 'application/vnd.android.package-archive',
  98. 'application' => 'application/x-ms-application',
  99. 'apr' => 'application/vnd.lotus-approach',
  100. 'aps' => 'application/mime',
  101. 'arc' => 'application/octet-stream',
  102. 'arj' => 'application/octet-stream',
  103. 'art' => 'image/x-jg',
  104. 'asf' => 'video/x-ms-asf',
  105. 'asm' => 'text/x-asm',
  106. 'aso' => 'application/vnd.accpac.simply.aso',
  107. 'asp' => 'text/asp',
  108. 'asx' => 'video/x-ms-asf-plugin',
  109. 'atc' => 'application/vnd.acucorp',
  110. 'atom' => 'application/atom+xml',
  111. 'atomcat' => 'application/atomcat+xml',
  112. 'atomsvc' => 'application/atomsvc+xml',
  113. 'atx' => 'application/vnd.antix.game-component',
  114. 'au' => 'audio/basic',
  115. 'avi' => 'video/x-msvideo',
  116. 'avs' => 'video/avs-video',
  117. 'aw' => 'application/applixware',
  118. 'azf' => 'application/vnd.airzip.filesecure.azf',
  119. 'azs' => 'application/vnd.airzip.filesecure.azs',
  120. 'azw' => 'application/vnd.amazon.ebook',
  121. 'bcpio' => 'application/x-bcpio',
  122. 'bdf' => 'application/x-font-bdf',
  123. 'bdm' => 'application/vnd.syncml.dm+wbxml',
  124. 'bed' => 'application/vnd.realvnc.bed',
  125. 'bh2' => 'application/vnd.fujitsu.oasysprs',
  126. 'bin' => 'application/octet-stream',
  127. 'bm' => 'image/bmp',
  128. 'bmi' => 'application/vnd.bmi',
  129. 'bmp' => 'image/bmp',
  130. 'boo' => 'application/book',
  131. 'book' => 'application/book',
  132. 'box' => 'application/vnd.previewsystems.box',
  133. 'boz' => 'application/x-bzip2',
  134. 'bsh' => 'application/x-bsh',
  135. 'btif' => 'image/prs.btif',
  136. 'bz' => 'application/x-bzip',
  137. 'bz2' => 'application/x-bzip2',
  138. 'c' => 'text/x-c',
  139. 'c++' => 'text/plain',
  140. 'c11amc' => 'application/vnd.cluetrust.cartomobile-config',
  141. 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg',
  142. 'c4g' => 'application/vnd.clonk.c4group',
  143. 'cab' => 'application/vnd.ms-cab-compressed',
  144. 'car' => 'application/vnd.curl.car',
  145. 'cat' => 'application/vnd.ms-pki.seccat',
  146. 'cc' => 'text/x-c',
  147. 'ccad' => 'application/clariscad',
  148. 'cco' => 'application/x-cocoa',
  149. 'ccxml' => 'application/ccxml+xml,',
  150. 'cdbcmsg' => 'application/vnd.contact.cmsg',
  151. 'cdf' => 'application/x-netcdf',
  152. 'cdkey' => 'application/vnd.mediastation.cdkey',
  153. 'cdmia' => 'application/cdmi-capability',
  154. 'cdmic' => 'application/cdmi-container',
  155. 'cdmid' => 'application/cdmi-domain',
  156. 'cdmio' => 'application/cdmi-object',
  157. 'cdmiq' => 'application/cdmi-queue',
  158. 'cdx' => 'chemical/x-cdx',
  159. 'cdxml' => 'application/vnd.chemdraw+xml',
  160. 'cdy' => 'application/vnd.cinderella',
  161. 'cer' => 'application/pkix-cert',
  162. 'cgm' => 'image/cgm',
  163. 'cha' => 'application/x-chat',
  164. 'chat' => 'application/x-chat',
  165. 'chm' => 'application/vnd.ms-htmlhelp',
  166. 'chrt' => 'application/vnd.kde.kchart',
  167. 'cif' => 'chemical/x-cif',
  168. 'cii' => 'application/vnd.anser-web-certificate-issue-initiation',
  169. 'cil' => 'application/vnd.ms-artgalry',
  170. 'cla' => 'application/vnd.claymore',
  171. 'class' => 'application/java-vm',
  172. 'clkk' => 'application/vnd.crick.clicker.keyboard',
  173. 'clkp' => 'application/vnd.crick.clicker.palette',
  174. 'clkt' => 'application/vnd.crick.clicker.template',
  175. 'clkw' => 'application/vnd.crick.clicker.wordbank',
  176. 'clkx' => 'application/vnd.crick.clicker',
  177. 'clp' => 'application/x-msclip',
  178. 'cmc' => 'application/vnd.cosmocaller',
  179. 'cmdf' => 'chemical/x-cmdf',
  180. 'cml' => 'chemical/x-cml',
  181. 'cmp' => 'application/vnd.yellowriver-custom-menu',
  182. 'cmx' => 'image/x-cmx',
  183. 'cod' => 'application/vnd.rim.cod',
  184. 'com' => 'text/plain',
  185. 'conf' => 'text/plain',
  186. 'cpio' => 'application/x-cpio',
  187. 'cpp' => 'text/x-c',
  188. 'cpt' => 'application/mac-compactpro',
  189. 'crd' => 'application/x-mscardfile',
  190. 'crl' => 'application/pkix-crl',
  191. 'crt' => 'application/x-x509-user-cert',
  192. 'cryptonote' => 'application/vnd.rig.cryptonote',
  193. 'csh' => 'application/x-csh',
  194. 'csml' => 'chemical/x-csml',
  195. 'csp' => 'application/vnd.commonspace',
  196. 'css' => 'text/css',
  197. 'csv' => 'text/csv',
  198. 'cu' => 'application/cu-seeme',
  199. 'curl' => 'text/vnd.curl',
  200. 'cww' => 'application/prs.cww',
  201. 'cxx' => 'text/plain',
  202. 'dae' => 'model/vnd.collada+xml',
  203. 'daf' => 'application/vnd.mobius.daf',
  204. 'davmount' => 'application/davmount+xml',
  205. 'dcr' => 'application/x-director',
  206. 'dcurl' => 'text/vnd.curl.dcurl',
  207. 'dd2' => 'application/vnd.oma.dd2+xml',
  208. 'ddd' => 'application/vnd.fujixerox.ddd',
  209. 'deb' => 'application/x-debian-package',
  210. 'deepv' => 'application/x-deepv',
  211. 'def' => 'text/plain',
  212. 'der' => 'application/x-x509-ca-cert',
  213. 'dfac' => 'application/vnd.dreamfactory',
  214. 'dif' => 'video/x-dv',
  215. 'dir' => 'application/x-director',
  216. 'dis' => 'application/vnd.mobius.dis',
  217. 'djvu' => 'image/vnd.djvu',
  218. 'dl' => 'video/x-dl',
  219. 'dna' => 'application/vnd.dna',
  220. 'doc' => 'application/msword',
  221. 'docm' => 'application/vnd.ms-word.document.macroenabled.12',
  222. 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
  223. 'dot' => 'application/msword',
  224. 'dotm' => 'application/vnd.ms-word.template.macroenabled.12',
  225. 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
  226. 'dp' => 'application/vnd.osgi.dp',
  227. 'dpg' => 'application/vnd.dpgraph',
  228. 'dra' => 'audio/vnd.dra',
  229. 'drw' => 'application/drafting',
  230. 'dsc' => 'text/prs.lines.tag',
  231. 'dssc' => 'application/dssc+der',
  232. 'dtb' => 'application/x-dtbook+xml',
  233. 'dtd' => 'application/xml-dtd',
  234. 'dts' => 'audio/vnd.dts',
  235. 'dtshd' => 'audio/vnd.dts.hd',
  236. 'dump' => 'application/octet-stream',
  237. 'dv' => 'video/x-dv',
  238. 'dvi' => 'application/x-dvi',
  239. 'dwf' => 'model/vnd.dwf',
  240. 'dwg' => 'image/vnd.dwg',
  241. 'dxf' => 'image/vnd.dxf',
  242. 'dxp' => 'application/vnd.spotfire.dxp',
  243. 'dxr' => 'application/x-director',
  244. 'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
  245. 'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
  246. 'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
  247. 'edm' => 'application/vnd.novadigm.edm',
  248. 'edx' => 'application/vnd.novadigm.edx',
  249. 'efif' => 'application/vnd.picsel',
  250. 'ei6' => 'application/vnd.pg.osasli',
  251. 'el' => 'text/x-script.elisp',
  252. 'elc' => 'application/x-elc',
  253. 'eml' => 'message/rfc822',
  254. 'emma' => 'application/emma+xml',
  255. 'env' => 'application/x-envoy',
  256. 'eol' => 'audio/vnd.digital-winds',
  257. 'eot' => 'application/vnd.ms-fontobject',
  258. 'eps' => 'application/postscript',
  259. 'epub' => 'application/epub+zip',
  260. 'es' => 'application/ecmascript',
  261. 'es3' => 'application/vnd.eszigno3+xml',
  262. 'esf' => 'application/vnd.epson.esf',
  263. 'etx' => 'text/x-setext',
  264. 'evy' => 'application/x-envoy',
  265. 'exe' => 'application/x-msdownload',
  266. 'exi' => 'application/exi',
  267. 'ext' => 'application/vnd.novadigm.ext',
  268. 'ez2' => 'application/vnd.ezpix-album',
  269. 'ez3' => 'application/vnd.ezpix-package',
  270. 'f' => 'text/x-fortran',
  271. 'f4v' => 'video/x-f4v',
  272. 'f77' => 'text/x-fortran',
  273. 'f90' => 'text/x-fortran',
  274. 'fbs' => 'image/vnd.fastbidsheet',
  275. 'fcs' => 'application/vnd.isac.fcs',
  276. 'fdf' => 'application/vnd.fdf',
  277. 'fe_launch' => 'application/vnd.denovo.fcselayout-link',
  278. 'fg5' => 'application/vnd.fujitsu.oasysgp',
  279. 'fh' => 'image/x-freehand',
  280. 'fif' => 'image/fif',
  281. 'fig' => 'application/x-xfig',
  282. 'fli' => 'video/x-fli',
  283. 'flo' => 'application/vnd.micrografx.flo',
  284. 'flv' => 'video/x-flv',
  285. 'flw' => 'application/vnd.kde.kivio',
  286. 'flx' => 'text/vnd.fmi.flexstor',
  287. 'fly' => 'text/vnd.fly',
  288. 'fm' => 'application/vnd.framemaker',
  289. 'fmf' => 'video/x-atomic3d-feature',
  290. 'fnc' => 'application/vnd.frogans.fnc',
  291. 'for' => 'text/x-fortran',
  292. 'fpx' => 'image/vnd.fpx',
  293. 'frl' => 'application/freeloader',
  294. 'fsc' => 'application/vnd.fsc.weblaunch',
  295. 'fst' => 'image/vnd.fst',
  296. 'ftc' => 'application/vnd.fluxtime.clip',
  297. 'fti' => 'application/vnd.anser-web-funds-transfer-initiation',
  298. 'funk' => 'audio/make',
  299. 'fvt' => 'video/vnd.fvt',
  300. 'fxp' => 'application/vnd.adobe.fxp',
  301. 'fzs' => 'application/vnd.fuzzysheet',
  302. 'g' => 'text/plain',
  303. 'g2w' => 'application/vnd.geoplan',
  304. 'g3' => 'image/g3fax',
  305. 'g3w' => 'application/vnd.geospace',
  306. 'gac' => 'application/vnd.groove-account',
  307. 'gdl' => 'model/vnd.gdl',
  308. 'geo' => 'application/vnd.dynageo',
  309. 'gex' => 'application/vnd.geometry-explorer',
  310. 'ggb' => 'application/vnd.geogebra.file',
  311. 'ggt' => 'application/vnd.geogebra.tool',
  312. 'ghf' => 'application/vnd.groove-help',
  313. 'gif' => 'image/gif',
  314. 'gim' => 'application/vnd.groove-identity-message',
  315. 'gl' => 'video/x-gl',
  316. 'gmx' => 'application/vnd.gmx',
  317. 'gnumeric' => 'application/x-gnumeric',
  318. 'gph' => 'application/vnd.flographit',
  319. 'gqf' => 'application/vnd.grafeq',
  320. 'gram' => 'application/srgs',
  321. 'grv' => 'application/vnd.groove-injector',
  322. 'grxml' => 'application/srgs+xml',
  323. 'gsd' => 'audio/x-gsm',
  324. 'gsf' => 'application/x-font-ghostscript',
  325. 'gsm' => 'audio/x-gsm',
  326. 'gsp' => 'application/x-gsp',
  327. 'gss' => 'application/x-gss',
  328. 'gtar' => 'application/x-gtar',
  329. 'gtm' => 'application/vnd.groove-tool-message',
  330. 'gtw' => 'model/vnd.gtw',
  331. 'gv' => 'text/vnd.graphviz',
  332. 'gxt' => 'application/vnd.geonext',
  333. 'gz' => 'application/x-gzip',
  334. 'gzip' => 'multipart/x-gzip',
  335. 'h' => 'text/x-h',
  336. 'h261' => 'video/h261',
  337. 'h263' => 'video/h263',
  338. 'h264' => 'video/h264',
  339. 'hal' => 'application/vnd.hal+xml',
  340. 'hbci' => 'application/vnd.hbci',
  341. 'hdf' => 'application/x-hdf',
  342. 'help' => 'application/x-helpfile',
  343. 'hgl' => 'application/vnd.hp-hpgl',
  344. 'hh' => 'text/x-h',
  345. 'hlb' => 'text/x-script',
  346. 'hlp' => 'application/winhlp',
  347. 'hpg' => 'application/vnd.hp-hpgl',
  348. 'hpgl' => 'application/vnd.hp-hpgl',
  349. 'hpid' => 'application/vnd.hp-hpid',
  350. 'hps' => 'application/vnd.hp-hps',
  351. 'hqx' => 'application/mac-binhex40',
  352. 'hta' => 'application/hta',
  353. 'htc' => 'text/x-component',
  354. 'htke' => 'application/vnd.kenameaapp',
  355. 'htm' => 'text/html',
  356. 'html' => 'text/html',
  357. 'htmls' => 'text/html',
  358. 'htt' => 'text/webviewhtml',
  359. 'htx' => 'text/html',
  360. 'hvd' => 'application/vnd.yamaha.hv-dic',
  361. 'hvp' => 'application/vnd.yamaha.hv-voice',
  362. 'hvs' => 'application/vnd.yamaha.hv-script',
  363. 'i2g' => 'application/vnd.intergeo',
  364. 'icc' => 'application/vnd.iccprofile',
  365. 'ice' => 'x-conference/x-cooltalk',
  366. 'ico' => 'image/vnd.microsoft.icon',
  367. 'ics' => 'text/calendar',
  368. 'idc' => 'text/plain',
  369. 'ief' => 'image/ief',
  370. 'iefs' => 'image/ief',
  371. 'ifm' => 'application/vnd.shana.informed.formdata',
  372. 'iges' => 'model/iges',
  373. 'igl' => 'application/vnd.igloader',
  374. 'igm' => 'application/vnd.insors.igm',
  375. 'igs' => 'model/iges',
  376. 'igx' => 'application/vnd.micrografx.igx',
  377. 'iif' => 'application/vnd.shana.informed.interchange',
  378. 'ima' => 'application/x-ima',
  379. 'imap' => 'application/x-httpd-imap',
  380. 'imp' => 'application/vnd.accpac.simply.imp',
  381. 'ims' => 'application/vnd.ms-ims',
  382. 'inf' => 'application/inf',
  383. 'ins' => 'application/x-internett-signup',
  384. 'ip' => 'application/x-ip2',
  385. 'ipfix' => 'application/ipfix',
  386. 'ipk' => 'application/vnd.shana.informed.package',
  387. 'irm' => 'application/vnd.ibm.rights-management',
  388. 'irp' => 'application/vnd.irepository.package+xml',
  389. 'isu' => 'video/x-isvideo',
  390. 'it' => 'audio/it',
  391. 'itp' => 'application/vnd.shana.informed.formtemplate',
  392. 'iv' => 'application/x-inventor',
  393. 'ivp' => 'application/vnd.immervision-ivp',
  394. 'ivr' => 'i-world/i-vrml',
  395. 'ivu' => 'application/vnd.immervision-ivu',
  396. 'ivy' => 'application/x-livescreen',
  397. 'jad' => 'text/vnd.sun.j2me.app-descriptor',
  398. 'jam' => 'application/vnd.jam',
  399. 'jar' => 'application/java-archive',
  400. 'jav' => 'text/x-java-source',
  401. 'java' => 'text/x-java-source,java',
  402. 'jcm' => 'application/x-java-commerce',
  403. 'jfif' => 'image/pjpeg',
  404. 'jfif-tbnl' => 'image/jpeg',
  405. 'jisp' => 'application/vnd.jisp',
  406. 'jlt' => 'application/vnd.hp-jlyt',
  407. 'jnlp' => 'application/x-java-jnlp-file',
  408. 'joda' => 'application/vnd.joost.joda-archive',
  409. 'jpe' => 'image/jpeg',
  410. 'jpeg' => 'image/jpeg',
  411. 'jpg' => 'image/jpeg',
  412. 'jpgv' => 'video/jpeg',
  413. 'jpm' => 'video/jpm',
  414. 'jps' => 'image/x-jps',
  415. 'js' => 'application/javascript',
  416. 'json' => 'application/json',
  417. 'jut' => 'image/jutvision',
  418. 'kar' => 'music/x-karaoke',
  419. 'karbon' => 'application/vnd.kde.karbon',
  420. 'kfo' => 'application/vnd.kde.kformula',
  421. 'kia' => 'application/vnd.kidspiration',
  422. 'kml' => 'application/vnd.google-earth.kml+xml',
  423. 'kmz' => 'application/vnd.google-earth.kmz',
  424. 'kne' => 'application/vnd.kinar',
  425. 'kon' => 'application/vnd.kde.kontour',
  426. 'kpr' => 'application/vnd.kde.kpresenter',
  427. 'ksh' => 'text/x-script.ksh',
  428. 'ksp' => 'application/vnd.kde.kspread',
  429. 'ktx' => 'image/ktx',
  430. 'ktz' => 'application/vnd.kahootz',
  431. 'kwd' => 'application/vnd.kde.kword',
  432. 'la' => 'audio/x-nspaudio',
  433. 'lam' => 'audio/x-liveaudio',
  434. 'lasxml' => 'application/vnd.las.las+xml',
  435. 'latex' => 'application/x-latex',
  436. 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
  437. 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml',
  438. 'les' => 'application/vnd.hhe.lesson-player',
  439. 'lha' => 'application/x-lha',
  440. 'lhx' => 'application/octet-stream',
  441. 'link66' => 'application/vnd.route66.link66+xml',
  442. 'list' => 'text/plain',
  443. 'lma' => 'audio/x-nspaudio',
  444. 'log' => 'text/plain',
  445. 'lrm' => 'application/vnd.ms-lrm',
  446. 'lsp' => 'text/x-script.lisp',
  447. 'lst' => 'text/plain',
  448. 'lsx' => 'text/x-la-asf',
  449. 'ltf' => 'application/vnd.frogans.ltf',
  450. 'ltx' => 'application/x-latex',
  451. 'lvp' => 'audio/vnd.lucent.voice',
  452. 'lwp' => 'application/vnd.lotus-wordpro',
  453. 'lzh' => 'application/x-lzh',
  454. 'lzx' => 'application/x-lzx',
  455. 'm' => 'text/x-m',
  456. 'm1v' => 'video/mpeg',
  457. 'm21' => 'application/mp21',
  458. 'm2a' => 'audio/mpeg',
  459. 'm2v' => 'video/mpeg',
  460. 'm3u' => 'audio/x-mpegurl',
  461. 'm3u8' => 'application/vnd.apple.mpegurl',
  462. 'm4v' => 'video/x-m4v',
  463. 'ma' => 'application/mathematica',
  464. 'mads' => 'application/mads+xml',
  465. 'mag' => 'application/vnd.ecowin.chart',
  466. 'man' => 'application/x-troff-man',
  467. 'map' => 'application/x-navimap',
  468. 'mar' => 'text/plain',
  469. 'mathml' => 'application/mathml+xml',
  470. 'mbd' => 'application/mbedlet',
  471. 'mbk' => 'application/vnd.mobius.mbk',
  472. 'mbox' => 'application/mbox',
  473. 'mc$' => 'application/x-magic-cap-package-1.0',
  474. 'mc1' => 'application/vnd.medcalcdata',
  475. 'mcd' => 'application/vnd.mcd',
  476. 'mcf' => 'text/mcf',
  477. 'mcp' => 'application/netmc',
  478. 'mcurl' => 'text/vnd.curl.mcurl',
  479. 'mdb' => 'application/x-msaccess',
  480. 'mdi' => 'image/vnd.ms-modi',
  481. 'me' => 'application/x-troff-me',
  482. 'meta4' => 'application/metalink4+xml',
  483. 'mets' => 'application/mets+xml',
  484. 'mfm' => 'application/vnd.mfmp',
  485. 'mgp' => 'application/vnd.osgeo.mapguide.package',
  486. 'mgz' => 'application/vnd.proteus.magazine',
  487. 'mht' => 'message/rfc822',
  488. 'mhtml' => 'message/rfc822',
  489. 'mid' => 'audio/midi',
  490. 'midi' => 'x-music/x-midi',
  491. 'mif' => 'application/vnd.mif',
  492. 'mime' => 'www/mime',
  493. 'mj2' => 'video/mj2',
  494. 'mjf' => 'audio/x-vnd.audioexplosion.mjuicemediafile',
  495. 'mjpg' => 'video/x-motion-jpeg',
  496. 'mlp' => 'application/vnd.dolby.mlp',
  497. 'mm' => 'application/x-meme',
  498. 'mmd' => 'application/vnd.chipnuts.karaoke-mmd',
  499. 'mme' => 'application/base64',
  500. 'mmf' => 'application/vnd.smaf',
  501. 'mmr' => 'image/vnd.fujixerox.edmics-mmr',
  502. 'mny' => 'application/x-msmoney',
  503. 'mod' => 'audio/x-mod',
  504. 'mods' => 'application/mods+xml',
  505. 'moov' => 'video/quicktime',
  506. 'mov' => 'video/quicktime',
  507. 'movie' => 'video/x-sgi-movie',
  508. 'mp2' => 'video/x-mpeq2a',
  509. 'mp3' => 'audio/mpeg',
  510. 'mp4' => 'video/mp4',
  511. 'mp4a' => 'audio/mp4',
  512. 'mpa' => 'video/mpeg',
  513. 'mpc' => 'application/vnd.mophun.certificate',
  514. 'mpe' => 'video/mpeg',
  515. 'mpeg' => 'video/mpeg',
  516. 'mpg' => 'video/mpeg',
  517. 'mpga' => 'audio/mpeg',
  518. 'mpkg' => 'application/vnd.apple.installer+xml',
  519. 'mpm' => 'application/vnd.blueice.multipass',
  520. 'mpn' => 'application/vnd.mophun.application',
  521. 'mpp' => 'application/vnd.ms-project',
  522. 'mpt' => 'application/x-project',
  523. 'mpv' => 'application/x-project',
  524. 'mpx' => 'application/x-project',
  525. 'mpy' => 'application/vnd.ibm.minipay',
  526. 'mqy' => 'application/vnd.mobius.mqy',
  527. 'mrc' => 'application/marc',
  528. 'mrcx' => 'application/marcxml+xml',
  529. 'ms' => 'application/x-troff-ms',
  530. 'mscml' => 'application/mediaservercontrol+xml',
  531. 'mseq' => 'application/vnd.mseq',
  532. 'msf' => 'application/vnd.epson.msf',
  533. 'msh' => 'model/mesh',
  534. 'msi' => 'application/x-msdownload',
  535. 'msl' => 'application/vnd.mobius.msl',
  536. 'msty' => 'application/vnd.muvee.style',
  537. 'mts' => 'model/vnd.mts',
  538. 'mus' => 'application/vnd.musician',
  539. 'musicxml' => 'application/vnd.recordare.musicxml+xml',
  540. 'mv' => 'video/x-sgi-movie',
  541. 'mvb' => 'application/x-msmediaview',
  542. 'mwf' => 'application/vnd.mfer',
  543. 'mxf' => 'application/mxf',
  544. 'mxl' => 'application/vnd.recordare.musicxml',
  545. 'mxml' => 'application/xv+xml',
  546. 'mxs' => 'application/vnd.triscape.mxs',
  547. 'mxu' => 'video/vnd.mpegurl',
  548. 'my' => 'audio/make',
  549. 'mzz' => 'application/x-vnd.audioexplosion.mzz',
  550. 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install',
  551. 'n3' => 'text/n3',
  552. 'nap' => 'image/naplps',
  553. 'naplps' => 'image/naplps',
  554. 'nbp' => 'application/vnd.wolfram.player',
  555. 'nc' => 'application/x-netcdf',
  556. 'ncm' => 'application/vnd.nokia.configuration-message',
  557. 'ncx' => 'application/x-dtbncx+xml',
  558. 'ngdat' => 'application/vnd.nokia.n-gage.data',
  559. 'nif' => 'image/x-niff',
  560. 'niff' => 'image/x-niff',
  561. 'nix' => 'application/x-mix-transfer',
  562. 'nlu' => 'application/vnd.neurolanguage.nlu',
  563. 'nml' => 'application/vnd.enliven',
  564. 'nnd' => 'application/vnd.noblenet-directory',
  565. 'nns' => 'application/vnd.noblenet-sealer',
  566. 'nnw' => 'application/vnd.noblenet-web',
  567. 'npx' => 'image/vnd.net-fpx',
  568. 'nsc' => 'application/x-conference',
  569. 'nsf' => 'application/vnd.lotus-notes',
  570. 'nvd' => 'application/x-navidoc',
  571. 'o' => 'application/octet-stream',
  572. 'oa2' => 'application/vnd.fujitsu.oasys2',
  573. 'oa3' => 'application/vnd.fujitsu.oasys3',
  574. 'oas' => 'application/vnd.fujitsu.oasys',
  575. 'obd' => 'application/x-msbinder',
  576. 'oda' => 'application/oda',
  577. 'odb' => 'application/vnd.oasis.opendocument.database',
  578. 'odc' => 'application/vnd.oasis.opendocument.chart',
  579. 'odf' => 'application/vnd.oasis.opendocument.formula',
  580. 'odft' => 'application/vnd.oasis.opendocument.formula-template',
  581. 'odg' => 'application/vnd.oasis.opendocument.graphics',
  582. 'odi' => 'application/vnd.oasis.opendocument.image',
  583. 'odm' => 'application/vnd.oasis.opendocument.text-master',
  584. 'odp' => 'application/vnd.oasis.opendocument.presentation',
  585. 'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
  586. 'odt' => 'application/vnd.oasis.opendocument.text',
  587. 'oga' => 'audio/ogg',
  588. 'ogg' => 'application/ogg',
  589. 'ogv' => 'video/ogg',
  590. 'ogx' => 'application/ogg',
  591. 'omc' => 'application/x-omc',
  592. 'omcd' => 'application/x-omcdatamaker',
  593. 'omcr' => 'application/x-omcregerator',
  594. 'onetoc' => 'application/onenote',
  595. 'opf' => 'application/oebps-package+xml',
  596. 'org' => 'application/vnd.lotus-organizer',
  597. 'osf' => 'application/vnd.yamaha.openscoreformat',
  598. 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
  599. 'otc' => 'application/vnd.oasis.opendocument.chart-template',
  600. 'otf' => 'application/x-font-otf',
  601. 'otg' => 'application/vnd.oasis.opendocument.graphics-template',
  602. 'oth' => 'application/vnd.oasis.opendocument.text-web',
  603. 'oti' => 'application/vnd.oasis.opendocument.image-template',
  604. 'otp' => 'application/vnd.oasis.opendocument.presentation-template',
  605. 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
  606. 'ott' => 'application/vnd.oasis.opendocument.text-template',
  607. 'oxt' => 'application/vnd.openofficeorg.extension',
  608. 'p' => 'text/x-pascal',
  609. 'p10' => 'application/pkcs10',
  610. 'p12' => 'application/x-pkcs12',
  611. 'p7a' => 'application/x-pkcs7-signature',
  612. 'p7b' => 'application/x-pkcs7-certificates',
  613. 'p7c' => 'application/x-pkcs7-mime',
  614. 'p7m' => 'application/pkcs7-mime',
  615. 'p7r' => 'application/x-pkcs7-certreqresp',
  616. 'p7s' => 'application/pkcs7-signature',
  617. 'p8' => 'application/pkcs8',
  618. 'part' => 'application/pro_eng',
  619. 'pas' => 'text/pascal',
  620. 'paw' => 'application/vnd.pawaafile',
  621. 'pbd' => 'application/vnd.powerbuilder6',
  622. 'pbm' => 'image/x-portable-bitmap',
  623. 'pcf' => 'application/x-font-pcf',
  624. 'pcl' => 'application/vnd.hp-pcl',
  625. 'pclxl' => 'application/vnd.hp-pclxl',
  626. 'pct' => 'image/x-pict',
  627. 'pcurl' => 'application/vnd.curl.pcurl',
  628. 'pcx' => 'image/x-pcx',
  629. 'pdb' => 'application/vnd.palm',
  630. 'pdf' => 'application/pdf',
  631. 'pfa' => 'application/x-font-type1',
  632. 'pfr' => 'application/font-tdpfr',
  633. 'pfunk' => 'audio/make.my.funk',
  634. 'pgm' => 'image/x-portable-graymap',
  635. 'pgn' => 'application/x-chess-pgn',
  636. 'pgp' => 'application/pgp-signature',
  637. 'php' => 'text/html',
  638. 'pic' => 'image/x-pict',
  639. 'pict' => 'image/pict',
  640. 'pkg' => 'application/x-newton-compatible-pkg',
  641. 'pki' => 'application/pkixcmp',
  642. 'pkipath' => 'application/pkix-pkipath',
  643. 'pko' => 'application/vnd.ms-pki.pko',
  644. 'pl' => 'text/x-script.perl',
  645. 'plb' => 'application/vnd.3gpp.pic-bw-large',
  646. 'plc' => 'application/vnd.mobius.plc',
  647. 'plf' => 'application/vnd.pocketlearn',
  648. 'pls' => 'application/pls+xml',
  649. 'plx' => 'application/x-pixclscript',
  650. 'pm' => 'text/x-script.perl-module',
  651. 'pm4' => 'application/x-pagemaker',
  652. 'pm5' => 'application/x-pagemaker',
  653. 'pml' => 'application/vnd.ctc-posml',
  654. 'png' => 'image/png',
  655. 'pnm' => 'image/x-portable-anymap',
  656. 'portpkg' => 'application/vnd.macports.portpkg',
  657. 'pot' => 'application/vnd.ms-powerpoint',
  658. 'potm' => 'application/vnd.ms-powerpoint.template.macroenabled.12',
  659. 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
  660. 'pov' => 'model/x-pov',
  661. 'ppa' => 'application/vnd.ms-powerpoint',
  662. 'ppam' => 'application/vnd.ms-powerpoint.addin.macroenabled.12',
  663. 'ppd' => 'application/vnd.cups-ppd',
  664. 'ppm' => 'image/x-portable-pixmap',
  665. 'pps' => 'application/vnd.ms-powerpoint',
  666. 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroenabled.12',
  667. 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
  668. 'ppt' => 'application/vnd.ms-powerpoint',
  669. 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroenabled.12',
  670. 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
  671. 'ppz' => 'application/mspowerpoint',
  672. 'prc' => 'application/x-mobipocket-ebook',
  673. 'pre' => 'application/vnd.lotus-freelance',
  674. 'prf' => 'application/pics-rules',
  675. 'prt' => 'application/pro_eng',
  676. 'ps' => 'application/postscript',
  677. 'psb' => 'application/vnd.3gpp.pic-bw-small',
  678. 'psd' => 'image/vnd.adobe.photoshop',
  679. 'psf' => 'application/x-font-linux-psf',
  680. 'pskcxml' => 'application/pskc+xml',
  681. 'ptid' => 'application/vnd.pvi.ptid1',
  682. 'pub' => 'application/x-mspublisher',
  683. 'pvb' => 'application/vnd.3gpp.pic-bw-var',
  684. 'pvu' => 'paleovu/x-pv',
  685. 'pwn' => 'application/vnd.3m.post-it-notes',
  686. 'pwz' => 'application/vnd.ms-powerpoint',
  687. 'py' => 'text/x-script.phyton',
  688. 'pya' => 'audio/vnd.ms-playready.media.pya',
  689. 'pyc' => 'applicaiton/x-bytecode.python',
  690. 'pyv' => 'video/vnd.ms-playready.media.pyv',
  691. 'qam' => 'application/vnd.epson.quickanime',
  692. 'qbo' => 'application/vnd.intu.qbo',
  693. 'qcp' => 'audio/vnd.qcelp',
  694. 'qd3' => 'x-world/x-3dmf',
  695. 'qd3d' => 'x-world/x-3dmf',
  696. 'qfx' => 'application/vnd.intu.qfx',
  697. 'qif' => 'image/x-quicktime',
  698. 'qps' => 'application/vnd.publishare-delta-tree',
  699. 'qt' => 'video/quicktime',
  700. 'qtc' => 'video/x-qtc',
  701. 'qti' => 'image/x-quicktime',
  702. 'qtif' => 'image/x-quicktime',
  703. 'qxd' => 'application/vnd.quark.quarkxpress',
  704. 'ra' => 'audio/x-realaudio',
  705. 'ram' => 'audio/x-pn-realaudio',
  706. 'rar' => 'application/x-rar-compressed',
  707. 'ras' => 'image/x-cmu-raster',
  708. 'rast' => 'image/cmu-raster',
  709. 'rcprofile' => 'application/vnd.ipunplugged.rcprofile',
  710. 'rdf' => 'application/rdf+xml',
  711. 'rdz' => 'application/vnd.data-vision.rdz',
  712. 'rep' => 'application/vnd.businessobjects',
  713. 'res' => 'application/x-dtbresource+xml',
  714. 'rexx' => 'text/x-script.rexx',
  715. 'rf' => 'image/vnd.rn-realflash',
  716. 'rgb' => 'image/x-rgb',
  717. 'rif' => 'application/reginfo+xml',
  718. 'rip' => 'audio/vnd.rip',
  719. 'rl' => 'application/resource-lists+xml',
  720. 'rlc' => 'image/vnd.fujixerox.edmics-rlc',
  721. 'rld' => 'application/resource-lists-diff+xml',
  722. 'rm' => 'application/vnd.rn-realmedia',
  723. 'rmi' => 'audio/mid',
  724. 'rmm' => 'audio/x-pn-realaudio',
  725. 'rmp' => 'audio/x-pn-realaudio-plugin',
  726. 'rms' => 'application/vnd.jcp.javame.midlet-rms',
  727. 'rnc' => 'application/relax-ng-compact-syntax',
  728. 'rng' => 'application/vnd.nokia.ringing-tone',
  729. 'rnx' => 'application/vnd.rn-realplayer',
  730. 'roff' => 'application/x-troff',
  731. 'rp' => 'image/vnd.rn-realpix',
  732. 'rp9' => 'application/vnd.cloanto.rp9',
  733. 'rpm' => 'audio/x-pn-realaudio-plugin',
  734. 'rpss' => 'application/vnd.nokia.radio-presets',
  735. 'rpst' => 'application/vnd.nokia.radio-preset',
  736. 'rq' => 'application/sparql-query',
  737. 'rs' => 'application/rls-services+xml',
  738. 'rsd' => 'application/rsd+xml',
  739. 'rss' => 'application/rss+xml',
  740. 'rt' => 'text/vnd.rn-realtext',
  741. 'rtf' => 'application/rtf',
  742. 'rtx' => 'text/richtext',
  743. 'rv' => 'video/vnd.rn-realvideo',
  744. 's' => 'text/x-asm',
  745. 's3m' => 'audio/s3m',
  746. 'saf' => 'application/vnd.yamaha.smaf-audio',
  747. 'saveme' => 'application/octet-stream',
  748. 'sbk' => 'application/x-tbook',
  749. 'sbml' => 'application/sbml+xml',
  750. 'sc' => 'application/vnd.ibm.secure-container',
  751. 'scd' => 'application/x-msschedule',
  752. 'scm' => 'application/vnd.lotus-screencam',
  753. 'scq' => 'application/scvp-cv-request',
  754. 'scs' => 'application/scvp-cv-response',
  755. 'scurl' => 'text/vnd.curl.scurl',
  756. 'sda' => 'application/vnd.stardivision.draw',
  757. 'sdc' => 'application/vnd.stardivision.calc',
  758. 'sdd' => 'application/vnd.stardivision.impress',
  759. 'sdkm' => 'application/vnd.solent.sdkm+xml',
  760. 'sdml' => 'text/plain',
  761. 'sdp' => 'application/sdp',
  762. 'sdr' => 'application/sounder',
  763. 'sdw' => 'application/vnd.stardivision.writer',
  764. 'sea' => 'application/x-sea',
  765. 'see' => 'application/vnd.seemail',
  766. 'seed' => 'application/vnd.fdsn.seed',
  767. 'sema' => 'application/vnd.sema',
  768. 'semd' => 'application/vnd.semd',
  769. 'semf' => 'application/vnd.semf',
  770. 'ser' => 'application/java-serialized-object',
  771. 'set' => 'application/set',
  772. 'setpay' => 'application/set-payment-initiation',
  773. 'setreg' => 'application/set-registration-initiation',
  774. 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data',
  775. 'sfs' => 'application/vnd.spotfire.sfs',
  776. 'sgl' => 'application/vnd.stardivision.writer-global',
  777. 'sgm' => 'text/x-sgml',
  778. 'sgml' => 'text/sgml',
  779. 'sh' => 'application/x-sh',
  780. 'shar' => 'application/x-shar',
  781. 'shf' => 'application/shf+xml',
  782. 'shtml' => 'text/x-server-parsed-html',
  783. 'sid' => 'audio/x-psid',
  784. 'sis' => 'application/vnd.symbian.install',
  785. 'sit' => 'application/x-stuffit',
  786. 'sitx' => 'application/x-stuffitx',
  787. 'skd' => 'application/x-koan',
  788. 'skm' => 'application/x-koan',
  789. 'skp' => 'application/vnd.koan',
  790. 'skt' => 'application/x-koan',
  791. 'sl' => 'application/x-seelogo',
  792. 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12',
  793. 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
  794. 'slt' => 'application/vnd.epson.salt',
  795. 'sm' => 'application/vnd.stepmania.stepchart',
  796. 'smf' => 'application/vnd.stardivision.math',
  797. 'smi' => 'application/smil+xml',
  798. 'smil' => 'application/smil',
  799. 'snd' => 'audio/x-adpcm',
  800. 'snf' => 'application/x-font-snf',
  801. 'sol' => 'application/solids',
  802. 'spc' => 'text/x-speech',
  803. 'spf' => 'application/vnd.yamaha.smaf-phrase',
  804. 'spl' => 'application/x-futuresplash',
  805. 'spot' => 'text/vnd.in3d.spot',
  806. 'spp' => 'application/scvp-vp-response',
  807. 'spq' => 'application/scvp-vp-request',
  808. 'spr' => 'application/x-sprite',
  809. 'sprite' => 'application/x-sprite',
  810. 'src' => 'application/x-wais-source',
  811. 'sru' => 'application/sru+xml',
  812. 'srx' => 'application/sparql-results+xml',
  813. 'sse' => 'application/vnd.kodak-descriptor',
  814. 'ssf' => 'application/vnd.epson.ssf',
  815. 'ssi' => 'text/x-server-parsed-html',
  816. 'ssm' => 'application/streamingmedia',
  817. 'ssml' => 'application/ssml+xml',
  818. 'sst' => 'application/vnd.ms-pki.certstore',
  819. 'st' => 'application/vnd.sailingtracker.track',
  820. 'stc' => 'application/vnd.sun.xml.calc.template',
  821. 'std' => 'application/vnd.sun.xml.draw.template',
  822. 'step' => 'application/step',
  823. 'stf' => 'application/vnd.wt.stf',
  824. 'sti' => 'application/vnd.sun.xml.impress.template',
  825. 'stk' => 'application/hyperstudio',
  826. 'stl' => 'application/vnd.ms-pki.stl',
  827. 'stp' => 'application/step',
  828. 'str' => 'application/vnd.pg.format',
  829. 'stw' => 'application/vnd.sun.xml.writer.template',
  830. 'sub' => 'image/vnd.dvb.subtitle',
  831. 'sus' => 'application/vnd.sus-calendar',
  832. 'sv4cpio' => 'application/x-sv4cpio',
  833. 'sv4crc' => 'application/x-sv4crc',
  834. 'svc' => 'application/vnd.dvb.service',
  835. 'svd' => 'application/vnd.svd',
  836. 'svf' => 'image/x-dwg',
  837. 'svg' => 'image/svg+xml',
  838. 'svgz' => 'image/svg+xml',
  839. 'svr' => 'x-world/x-svr',
  840. 'swf' => 'application/x-shockwave-flash',
  841. 'swi' => 'application/vnd.aristanetworks.swi',
  842. 'sxc' => 'application/vnd.sun.xml.calc',
  843. 'sxd' => 'application/vnd.sun.xml.draw',
  844. 'sxg' => 'application/vnd.sun.xml.writer.global',
  845. 'sxi' => 'application/vnd.sun.xml.impress',
  846. 'sxm' => 'application/vnd.sun.xml.math',
  847. 'sxw' => 'application/vnd.sun.xml.writer',
  848. 't' => 'text/troff',
  849. 'talk' => 'text/x-speech',
  850. 'tao' => 'application/vnd.tao.intent-module-archive',
  851. 'tar' => 'application/x-tar',
  852. 'tbk' => 'application/x-tbook',
  853. 'tcap' => 'application/vnd.3gpp2.tcap',
  854. 'tcl' => 'application/x-tcl',
  855. 'tcsh' => 'text/x-script.tcsh',
  856. 'teacher' => 'application/vnd.smart.teacher',
  857. 'tei' => 'application/tei+xml',
  858. 'tex' => 'application/x-tex',
  859. 'texi' => 'application/x-texinfo',
  860. 'texinfo' => 'application/x-texinfo',
  861. 'text' => 'text/plain',
  862. 'tfi' => 'application/thraud+xml',
  863. 'tfm' => 'application/x-tex-tfm',
  864. 'tgz' => 'application/x-compressed',
  865. 'thmx' => 'application/vnd.ms-officetheme',
  866. 'tif' => 'image/tiff',
  867. 'tiff' => 'image/tiff',
  868. 'tmo' => 'application/vnd.tmobile-livetv',
  869. 'torrent' => 'application/x-bittorrent',
  870. 'tpl' => 'application/vnd.groove-tool-template',
  871. 'tpt' => 'application/vnd.trid.tpt',
  872. 'tr' => 'application/x-troff',
  873. 'tra' => 'application/vnd.trueapp',
  874. 'trm' => 'application/x-msterminal',
  875. 'tsd' => 'application/timestamped-data',
  876. 'tsi' => 'audio/tsp-audio',
  877. 'tsp' => 'audio/tsplayer',
  878. 'tsv' => 'text/tab-separated-values',
  879. 'ttf' => 'application/x-font-ttf',
  880. 'ttl' => 'text/turtle',
  881. 'turbot' => 'image/florian',
  882. 'twd' => 'application/vnd.simtech-mindmapper',
  883. 'txd' => 'application/vnd.genomatix.tuxedo',
  884. 'txf' => 'application/vnd.mobius.txf',
  885. 'txt' => 'text/plain',
  886. 'ufd' => 'application/vnd.ufdl',
  887. 'uil' => 'text/x-uil',
  888. 'umj' => 'application/vnd.umajin',
  889. 'uni' => 'text/uri-list',
  890. 'unis' => 'text/uri-list',
  891. 'unityweb' => 'application/vnd.unity',
  892. 'unv' => 'application/i-deas',
  893. 'uoml' => 'application/vnd.uoml+xml',
  894. 'uri' => 'text/uri-list',
  895. 'uris' => 'text/uri-list',
  896. 'ustar' => 'application/x-ustar',
  897. 'utz' => 'application/vnd.uiq.theme',
  898. 'uu' => 'text/x-uuencode',
  899. 'uue' => 'text/x-uuencode',
  900. 'uva' => 'audio/vnd.dece.audio',
  901. 'uvh' => 'video/vnd.dece.hd',
  902. 'uvi' => 'image/vnd.dece.graphic',
  903. 'uvm' => 'video/vnd.dece.mobile',
  904. 'uvp' => 'video/vnd.dece.pd',
  905. 'uvs' => 'video/vnd.dece.sd',
  906. 'uvu' => 'video/vnd.uvvu.mp4',
  907. 'uvv' => 'video/vnd.dece.video',
  908. 'vcd' => 'application/x-cdlink',
  909. 'vcf' => 'text/x-vcard',
  910. 'vcg' => 'application/vnd.groove-vcard',
  911. 'vcs' => 'text/x-vcalendar',
  912. 'vcx' => 'application/vnd.vcx',
  913. 'vda' => 'application/vda',
  914. 'vdo' => 'video/vdo',
  915. 'vew' => 'application/groupwise',
  916. 'vis' => 'application/vnd.visionary',
  917. 'viv' => 'video/vnd.vivo',
  918. 'vivo' => 'video/vnd.vivo',
  919. 'vmd' => 'application/vocaltec-media-desc',
  920. 'vmf' => 'application/vocaltec-media-file',
  921. 'voc' => 'audio/x-voc',
  922. 'vos' => 'video/vosaic',
  923. 'vox' => 'audio/voxware',
  924. 'vqe' => 'audio/x-twinvq-plugin',
  925. 'vqf' => 'audio/x-twinvq',
  926. 'vql' => 'audio/x-twinvq-plugin',
  927. 'vrml' => 'x-world/x-vrml',
  928. 'vrt' => 'x-world/x-vrt',
  929. 'vsd' => 'application/vnd.visio',
  930. 'vsf' => 'application/vnd.vsf',
  931. 'vst' => 'application/x-visio',
  932. 'vsw' => 'application/x-visio',
  933. 'vtu' => 'model/vnd.vtu',
  934. 'vxml' => 'application/voicexml+xml',
  935. 'w60' => 'application/wordperfect6.0',
  936. 'w61' => 'application/wordperfect6.1',
  937. 'w6w' => 'application/msword',
  938. 'wad' => 'application/x-doom',
  939. 'wav' => 'audio/wav',
  940. 'wax' => 'audio/x-ms-wax',
  941. 'wb1' => 'application/x-qpro',
  942. 'wbmp' => 'image/vnd.wap.wbmp',
  943. 'wbs' => 'application/vnd.criticaltools.wbs+xml',
  944. 'wbxml' => 'application/vnd.wap.wbxml',
  945. 'web' => 'application/vnd.xara',
  946. 'weba' => 'audio/webm',
  947. 'webm' => 'video/webm',
  948. 'webp' => 'image/webp',
  949. 'wg' => 'application/vnd.pmi.widget',
  950. 'wgt' => 'application/widget',
  951. 'wiz' => 'application/msword',
  952. 'wk1' => 'application/x-123',
  953. 'wm' => 'video/x-ms-wm',
  954. 'wma' => 'audio/x-ms-wma',
  955. 'wmd' => 'application/x-ms-wmd',
  956. 'wmf' => 'application/x-msmetafile',
  957. 'wml' => 'text/vnd.wap.wml',
  958. 'wmlc' => 'application/vnd.wap.wmlc',
  959. 'wmls' => 'text/vnd.wap.wmlscript',
  960. 'wmlsc' => 'application/vnd.wap.wmlscriptc',
  961. 'wmv' => 'video/x-ms-wmv',
  962. 'wmx' => 'video/x-ms-wmx',
  963. 'wmz' => 'application/x-ms-wmz',
  964. 'woff' => 'application/x-font-woff',
  965. 'word' => 'application/msword',
  966. 'wp' => 'application/wordperfect',
  967. 'wp5' => 'application/wordperfect6.0',
  968. 'wp6' => 'application/wordperfect',
  969. 'wpd' => 'application/vnd.wordperfect',
  970. 'wpl' => 'application/vnd.ms-wpl',
  971. 'wps' => 'application/vnd.ms-works',
  972. 'wq1' => 'application/x-lotus',
  973. 'wqd' => 'application/vnd.wqd',
  974. 'wri' => 'application/x-mswrite',
  975. 'wrl' => 'model/vrml',
  976. 'wrz' => 'x-world/x-vrml',
  977. 'wsc' => 'text/scriplet',
  978. 'wsdl' => 'application/wsdl+xml',
  979. 'wspolicy' => 'application/wspolicy+xml',
  980. 'wsrc' => 'application/x-wais-source',
  981. 'wtb' => 'application/vnd.webturbo',
  982. 'wtk' => 'application/x-wintalk',
  983. 'wvx' => 'video/x-ms-wvx',
  984. 'x-png' => 'image/png',
  985. 'x3d' => 'application/vnd.hzn-3d-crossword',
  986. 'xap' => 'application/x-silverlight-app',
  987. 'xar' => 'application/vnd.xara',
  988. 'xbap' => 'application/x-ms-xbap',
  989. 'xbd' => 'application/vnd.fujixerox.docuworks.binder',
  990. 'xbm' => 'image/x-xbitmap',
  991. 'xdf' => 'application/xcap-diff+xml',
  992. 'xdm' => 'application/vnd.syncml.dm+xml',
  993. 'xdp' => 'application/vnd.adobe.xdp+xml',
  994. 'xdr' => 'video/x-amt-demorun',
  995. 'xdssc' => 'application/dssc+xml',
  996. 'xdw' => 'application/vnd.fujixerox.docuworks',
  997. 'xenc' => 'application/xenc+xml',
  998. 'xer' => 'application/patch-ops-error+xml',
  999. 'xfdf' => 'application/vnd.adobe.xfdf',
  1000. 'xfdl' => 'application/vnd.xfdl',
  1001. 'xgz' => 'xgl/drawing',
  1002. 'xhtml' => 'application/xhtml+xml',
  1003. 'xif' => 'image/vnd.xiff',
  1004. 'xl' => 'application/excel',
  1005. 'xla' => 'application/x-msexcel',
  1006. 'xlam' => 'application/vnd.ms-excel.addin.macroenabled.12',
  1007. 'xlb' => 'application/x-excel',
  1008. 'xlc' => 'application/x-excel',
  1009. 'xld' => 'application/x-excel',
  1010. 'xlk' => 'application/x-excel',
  1011. 'xll' => 'application/x-excel',
  1012. 'xlm' => 'application/x-excel',
  1013. 'xls' => 'application/vnd.ms-excel',
  1014. 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12',
  1015. 'xlsm' => 'application/vnd.ms-excel.sheet.macroenabled.12',
  1016. 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
  1017. 'xlt' => 'application/x-excel',
  1018. 'xltm' => 'application/vnd.ms-excel.template.macroenabled.12',
  1019. 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
  1020. 'xlv' => 'application/x-excel',
  1021. 'xlw' => 'application/x-msexcel',
  1022. 'xm' => 'audio/xm',
  1023. 'xml' => 'application/xml',
  1024. 'xmz' => 'xgl/movie',
  1025. 'xo' => 'application/vnd.olpc-sugar',
  1026. 'xop' => 'application/xop+xml',
  1027. 'xpi' => 'application/x-xpinstall',
  1028. 'xpix' => 'application/x-vnd.ls-xpix',
  1029. 'xpm' => 'image/x-xpixmap',
  1030. 'xpr' => 'application/vnd.is-xpr',
  1031. 'xps' => 'application/vnd.ms-xpsdocument',
  1032. 'xpw' => 'application/vnd.intercon.formnet',
  1033. 'xslt' => 'application/xslt+xml',
  1034. 'xsm' => 'application/vnd.syncml+xml',
  1035. 'xspf' => 'application/xspf+xml',
  1036. 'xsr' => 'video/x-amt-showrun',
  1037. 'xul' => 'application/vnd.mozilla.xul+xml',
  1038. 'xwd' => 'image/x-xwindowdump',
  1039. 'xyz' => 'chemical/x-xyz',
  1040. 'yang' => 'application/yang',
  1041. 'yin' => 'application/yin+xml',
  1042. 'z' => 'application/x-compressed',
  1043. 'zaz' => 'application/vnd.zzazz.deck+xml',
  1044. 'zip' => 'application/zip',
  1045. 'zir' => 'application/vnd.zul',
  1046. 'zmm' => 'application/vnd.handheld-entertainment+xml',
  1047. 'zoo' => 'application/octet-stream',
  1048. 'zsh' => 'text/x-script.zsh',
  1049. );
  1050. $dot = strpos($filename, '.');
  1051. if ($dot !== false) {
  1052. $ext = strtolower(substr($filename, $dot + 1));
  1053. if (array_key_exists($ext, $mime_types)) {
  1054. return $mime_types[$ext];
  1055. }
  1056. }
  1057. /// @TODO Then let's get rid of it?
  1058. // can't use this because we're just passing a name, e.g. not a file that can be opened
  1059. // elseif (function_exists('finfo_open')) {
  1060. // $finfo = @finfo_open(FILEINFO_MIME);
  1061. // $mimetype = @finfo_file($finfo, $filename);
  1062. // @finfo_close($finfo);
  1063. // return $mimetype;
  1064. // }
  1065. else {
  1066. return 'application/octet-stream';
  1067. }
  1068. }