Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.
   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  namespace GuzzleHttp\Psr7;
   6  
   7  final class MimeType
   8  {
   9      private const MIME_TYPES = [
  10          '1km' => 'application/vnd.1000minds.decision-model+xml',
  11          '3dml' => 'text/vnd.in3d.3dml',
  12          '3ds' => 'image/x-3ds',
  13          '3g2' => 'video/3gpp2',
  14          '3gp' => 'video/3gp',
  15          '3gpp' => 'video/3gpp',
  16          '3mf' => 'model/3mf',
  17          '7z' => 'application/x-7z-compressed',
  18          '7zip' => 'application/x-7z-compressed',
  19          '123' => 'application/vnd.lotus-1-2-3',
  20          'aab' => 'application/x-authorware-bin',
  21          'aac' => 'audio/x-acc',
  22          'aam' => 'application/x-authorware-map',
  23          'aas' => 'application/x-authorware-seg',
  24          'abw' => 'application/x-abiword',
  25          'ac' => 'application/vnd.nokia.n-gage.ac+xml',
  26          'ac3' => 'audio/ac3',
  27          'acc' => 'application/vnd.americandynamics.acc',
  28          'ace' => 'application/x-ace-compressed',
  29          'acu' => 'application/vnd.acucobol',
  30          'acutc' => 'application/vnd.acucorp',
  31          'adp' => 'audio/adpcm',
  32          'aep' => 'application/vnd.audiograph',
  33          'afm' => 'application/x-font-type1',
  34          'afp' => 'application/vnd.ibm.modcap',
  35          'age' => 'application/vnd.age',
  36          'ahead' => 'application/vnd.ahead.space',
  37          'ai' => 'application/pdf',
  38          'aif' => 'audio/x-aiff',
  39          'aifc' => 'audio/x-aiff',
  40          'aiff' => 'audio/x-aiff',
  41          'air' => 'application/vnd.adobe.air-application-installer-package+zip',
  42          'ait' => 'application/vnd.dvb.ait',
  43          'ami' => 'application/vnd.amiga.ami',
  44          'amr' => 'audio/amr',
  45          'apk' => 'application/vnd.android.package-archive',
  46          'apng' => 'image/apng',
  47          'appcache' => 'text/cache-manifest',
  48          'application' => 'application/x-ms-application',
  49          'apr' => 'application/vnd.lotus-approach',
  50          'arc' => 'application/x-freearc',
  51          'arj' => 'application/x-arj',
  52          'asc' => 'application/pgp-signature',
  53          'asf' => 'video/x-ms-asf',
  54          'asm' => 'text/x-asm',
  55          'aso' => 'application/vnd.accpac.simply.aso',
  56          'asx' => 'video/x-ms-asf',
  57          'atc' => 'application/vnd.acucorp',
  58          'atom' => 'application/atom+xml',
  59          'atomcat' => 'application/atomcat+xml',
  60          'atomdeleted' => 'application/atomdeleted+xml',
  61          'atomsvc' => 'application/atomsvc+xml',
  62          'atx' => 'application/vnd.antix.game-component',
  63          'au' => 'audio/x-au',
  64          'avci' => 'image/avci',
  65          'avcs' => 'image/avcs',
  66          'avi' => 'video/x-msvideo',
  67          'avif' => 'image/avif',
  68          'aw' => 'application/applixware',
  69          'azf' => 'application/vnd.airzip.filesecure.azf',
  70          'azs' => 'application/vnd.airzip.filesecure.azs',
  71          'azv' => 'image/vnd.airzip.accelerator.azv',
  72          'azw' => 'application/vnd.amazon.ebook',
  73          'b16' => 'image/vnd.pco.b16',
  74          'bat' => 'application/x-msdownload',
  75          'bcpio' => 'application/x-bcpio',
  76          'bdf' => 'application/x-font-bdf',
  77          'bdm' => 'application/vnd.syncml.dm+wbxml',
  78          'bdoc' => 'application/x-bdoc',
  79          'bed' => 'application/vnd.realvnc.bed',
  80          'bh2' => 'application/vnd.fujitsu.oasysprs',
  81          'bin' => 'application/octet-stream',
  82          'blb' => 'application/x-blorb',
  83          'blorb' => 'application/x-blorb',
  84          'bmi' => 'application/vnd.bmi',
  85          'bmml' => 'application/vnd.balsamiq.bmml+xml',
  86          'bmp' => 'image/bmp',
  87          'book' => 'application/vnd.framemaker',
  88          'box' => 'application/vnd.previewsystems.box',
  89          'boz' => 'application/x-bzip2',
  90          'bpk' => 'application/octet-stream',
  91          'bpmn' => 'application/octet-stream',
  92          'bsp' => 'model/vnd.valve.source.compiled-map',
  93          'btif' => 'image/prs.btif',
  94          'buffer' => 'application/octet-stream',
  95          'bz' => 'application/x-bzip',
  96          'bz2' => 'application/x-bzip2',
  97          'c' => 'text/x-c',
  98          'c4d' => 'application/vnd.clonk.c4group',
  99          'c4f' => 'application/vnd.clonk.c4group',
 100          'c4g' => 'application/vnd.clonk.c4group',
 101          'c4p' => 'application/vnd.clonk.c4group',
 102          'c4u' => 'application/vnd.clonk.c4group',
 103          'c11amc' => 'application/vnd.cluetrust.cartomobile-config',
 104          'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg',
 105          'cab' => 'application/vnd.ms-cab-compressed',
 106          'caf' => 'audio/x-caf',
 107          'cap' => 'application/vnd.tcpdump.pcap',
 108          'car' => 'application/vnd.curl.car',
 109          'cat' => 'application/vnd.ms-pki.seccat',
 110          'cb7' => 'application/x-cbr',
 111          'cba' => 'application/x-cbr',
 112          'cbr' => 'application/x-cbr',
 113          'cbt' => 'application/x-cbr',
 114          'cbz' => 'application/x-cbr',
 115          'cc' => 'text/x-c',
 116          'cco' => 'application/x-cocoa',
 117          'cct' => 'application/x-director',
 118          'ccxml' => 'application/ccxml+xml',
 119          'cdbcmsg' => 'application/vnd.contact.cmsg',
 120          'cdf' => 'application/x-netcdf',
 121          'cdfx' => 'application/cdfx+xml',
 122          'cdkey' => 'application/vnd.mediastation.cdkey',
 123          'cdmia' => 'application/cdmi-capability',
 124          'cdmic' => 'application/cdmi-container',
 125          'cdmid' => 'application/cdmi-domain',
 126          'cdmio' => 'application/cdmi-object',
 127          'cdmiq' => 'application/cdmi-queue',
 128          'cdr' => 'application/cdr',
 129          'cdx' => 'chemical/x-cdx',
 130          'cdxml' => 'application/vnd.chemdraw+xml',
 131          'cdy' => 'application/vnd.cinderella',
 132          'cer' => 'application/pkix-cert',
 133          'cfs' => 'application/x-cfs-compressed',
 134          'cgm' => 'image/cgm',
 135          'chat' => 'application/x-chat',
 136          'chm' => 'application/vnd.ms-htmlhelp',
 137          'chrt' => 'application/vnd.kde.kchart',
 138          'cif' => 'chemical/x-cif',
 139          'cii' => 'application/vnd.anser-web-certificate-issue-initiation',
 140          'cil' => 'application/vnd.ms-artgalry',
 141          'cjs' => 'application/node',
 142          'cla' => 'application/vnd.claymore',
 143          'class' => 'application/octet-stream',
 144          'clkk' => 'application/vnd.crick.clicker.keyboard',
 145          'clkp' => 'application/vnd.crick.clicker.palette',
 146          'clkt' => 'application/vnd.crick.clicker.template',
 147          'clkw' => 'application/vnd.crick.clicker.wordbank',
 148          'clkx' => 'application/vnd.crick.clicker',
 149          'clp' => 'application/x-msclip',
 150          'cmc' => 'application/vnd.cosmocaller',
 151          'cmdf' => 'chemical/x-cmdf',
 152          'cml' => 'chemical/x-cml',
 153          'cmp' => 'application/vnd.yellowriver-custom-menu',
 154          'cmx' => 'image/x-cmx',
 155          'cod' => 'application/vnd.rim.cod',
 156          'coffee' => 'text/coffeescript',
 157          'com' => 'application/x-msdownload',
 158          'conf' => 'text/plain',
 159          'cpio' => 'application/x-cpio',
 160          'cpl' => 'application/cpl+xml',
 161          'cpp' => 'text/x-c',
 162          'cpt' => 'application/mac-compactpro',
 163          'crd' => 'application/x-mscardfile',
 164          'crl' => 'application/pkix-crl',
 165          'crt' => 'application/x-x509-ca-cert',
 166          'crx' => 'application/x-chrome-extension',
 167          'cryptonote' => 'application/vnd.rig.cryptonote',
 168          'csh' => 'application/x-csh',
 169          'csl' => 'application/vnd.citationstyles.style+xml',
 170          'csml' => 'chemical/x-csml',
 171          'csp' => 'application/vnd.commonspace',
 172          'csr' => 'application/octet-stream',
 173          'css' => 'text/css',
 174          'cst' => 'application/x-director',
 175          'csv' => 'text/csv',
 176          'cu' => 'application/cu-seeme',
 177          'curl' => 'text/vnd.curl',
 178          'cww' => 'application/prs.cww',
 179          'cxt' => 'application/x-director',
 180          'cxx' => 'text/x-c',
 181          'dae' => 'model/vnd.collada+xml',
 182          'daf' => 'application/vnd.mobius.daf',
 183          'dart' => 'application/vnd.dart',
 184          'dataless' => 'application/vnd.fdsn.seed',
 185          'davmount' => 'application/davmount+xml',
 186          'dbf' => 'application/vnd.dbf',
 187          'dbk' => 'application/docbook+xml',
 188          'dcr' => 'application/x-director',
 189          'dcurl' => 'text/vnd.curl.dcurl',
 190          'dd2' => 'application/vnd.oma.dd2+xml',
 191          'ddd' => 'application/vnd.fujixerox.ddd',
 192          'ddf' => 'application/vnd.syncml.dmddf+xml',
 193          'dds' => 'image/vnd.ms-dds',
 194          'deb' => 'application/x-debian-package',
 195          'def' => 'text/plain',
 196          'deploy' => 'application/octet-stream',
 197          'der' => 'application/x-x509-ca-cert',
 198          'dfac' => 'application/vnd.dreamfactory',
 199          'dgc' => 'application/x-dgc-compressed',
 200          'dic' => 'text/x-c',
 201          'dir' => 'application/x-director',
 202          'dis' => 'application/vnd.mobius.dis',
 203          'disposition-notification' => 'message/disposition-notification',
 204          'dist' => 'application/octet-stream',
 205          'distz' => 'application/octet-stream',
 206          'djv' => 'image/vnd.djvu',
 207          'djvu' => 'image/vnd.djvu',
 208          'dll' => 'application/octet-stream',
 209          'dmg' => 'application/x-apple-diskimage',
 210          'dmn' => 'application/octet-stream',
 211          'dmp' => 'application/vnd.tcpdump.pcap',
 212          'dms' => 'application/octet-stream',
 213          'dna' => 'application/vnd.dna',
 214          'doc' => 'application/msword',
 215          'docm' => 'application/vnd.ms-word.template.macroEnabled.12',
 216          'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
 217          'dot' => 'application/msword',
 218          'dotm' => 'application/vnd.ms-word.template.macroEnabled.12',
 219          'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
 220          'dp' => 'application/vnd.osgi.dp',
 221          'dpg' => 'application/vnd.dpgraph',
 222          'dra' => 'audio/vnd.dra',
 223          'drle' => 'image/dicom-rle',
 224          'dsc' => 'text/prs.lines.tag',
 225          'dssc' => 'application/dssc+der',
 226          'dtb' => 'application/x-dtbook+xml',
 227          'dtd' => 'application/xml-dtd',
 228          'dts' => 'audio/vnd.dts',
 229          'dtshd' => 'audio/vnd.dts.hd',
 230          'dump' => 'application/octet-stream',
 231          'dvb' => 'video/vnd.dvb.file',
 232          'dvi' => 'application/x-dvi',
 233          'dwd' => 'application/atsc-dwd+xml',
 234          'dwf' => 'model/vnd.dwf',
 235          'dwg' => 'image/vnd.dwg',
 236          'dxf' => 'image/vnd.dxf',
 237          'dxp' => 'application/vnd.spotfire.dxp',
 238          'dxr' => 'application/x-director',
 239          'ear' => 'application/java-archive',
 240          'ecelp4800' => 'audio/vnd.nuera.ecelp4800',
 241          'ecelp7470' => 'audio/vnd.nuera.ecelp7470',
 242          'ecelp9600' => 'audio/vnd.nuera.ecelp9600',
 243          'ecma' => 'application/ecmascript',
 244          'edm' => 'application/vnd.novadigm.edm',
 245          'edx' => 'application/vnd.novadigm.edx',
 246          'efif' => 'application/vnd.picsel',
 247          'ei6' => 'application/vnd.pg.osasli',
 248          'elc' => 'application/octet-stream',
 249          'emf' => 'image/emf',
 250          'eml' => 'message/rfc822',
 251          'emma' => 'application/emma+xml',
 252          'emotionml' => 'application/emotionml+xml',
 253          'emz' => 'application/x-msmetafile',
 254          'eol' => 'audio/vnd.digital-winds',
 255          'eot' => 'application/vnd.ms-fontobject',
 256          'eps' => 'application/postscript',
 257          'epub' => 'application/epub+zip',
 258          'es' => 'application/ecmascript',
 259          'es3' => 'application/vnd.eszigno3+xml',
 260          'esa' => 'application/vnd.osgi.subsystem',
 261          'esf' => 'application/vnd.epson.esf',
 262          'et3' => 'application/vnd.eszigno3+xml',
 263          'etx' => 'text/x-setext',
 264          'eva' => 'application/x-eva',
 265          'evy' => 'application/x-envoy',
 266          'exe' => 'application/octet-stream',
 267          'exi' => 'application/exi',
 268          'exp' => 'application/express',
 269          'exr' => 'image/aces',
 270          'ext' => 'application/vnd.novadigm.ext',
 271          'ez' => 'application/andrew-inset',
 272          'ez2' => 'application/vnd.ezpix-album',
 273          'ez3' => 'application/vnd.ezpix-package',
 274          'f' => 'text/x-fortran',
 275          'f4v' => 'video/mp4',
 276          'f77' => 'text/x-fortran',
 277          'f90' => 'text/x-fortran',
 278          'fbs' => 'image/vnd.fastbidsheet',
 279          'fcdt' => 'application/vnd.adobe.formscentral.fcdt',
 280          'fcs' => 'application/vnd.isac.fcs',
 281          'fdf' => 'application/vnd.fdf',
 282          'fdt' => 'application/fdt+xml',
 283          'fe_launch' => 'application/vnd.denovo.fcselayout-link',
 284          'fg5' => 'application/vnd.fujitsu.oasysgp',
 285          'fgd' => 'application/x-director',
 286          'fh' => 'image/x-freehand',
 287          'fh4' => 'image/x-freehand',
 288          'fh5' => 'image/x-freehand',
 289          'fh7' => 'image/x-freehand',
 290          'fhc' => 'image/x-freehand',
 291          'fig' => 'application/x-xfig',
 292          'fits' => 'image/fits',
 293          'flac' => 'audio/x-flac',
 294          'fli' => 'video/x-fli',
 295          'flo' => 'application/vnd.micrografx.flo',
 296          'flv' => 'video/x-flv',
 297          'flw' => 'application/vnd.kde.kivio',
 298          'flx' => 'text/vnd.fmi.flexstor',
 299          'fly' => 'text/vnd.fly',
 300          'fm' => 'application/vnd.framemaker',
 301          'fnc' => 'application/vnd.frogans.fnc',
 302          'fo' => 'application/vnd.software602.filler.form+xml',
 303          'for' => 'text/x-fortran',
 304          'fpx' => 'image/vnd.fpx',
 305          'frame' => 'application/vnd.framemaker',
 306          'fsc' => 'application/vnd.fsc.weblaunch',
 307          'fst' => 'image/vnd.fst',
 308          'ftc' => 'application/vnd.fluxtime.clip',
 309          'fti' => 'application/vnd.anser-web-funds-transfer-initiation',
 310          'fvt' => 'video/vnd.fvt',
 311          'fxp' => 'application/vnd.adobe.fxp',
 312          'fxpl' => 'application/vnd.adobe.fxp',
 313          'fzs' => 'application/vnd.fuzzysheet',
 314          'g2w' => 'application/vnd.geoplan',
 315          'g3' => 'image/g3fax',
 316          'g3w' => 'application/vnd.geospace',
 317          'gac' => 'application/vnd.groove-account',
 318          'gam' => 'application/x-tads',
 319          'gbr' => 'application/rpki-ghostbusters',
 320          'gca' => 'application/x-gca-compressed',
 321          'gdl' => 'model/vnd.gdl',
 322          'gdoc' => 'application/vnd.google-apps.document',
 323          'ged' => 'text/vnd.familysearch.gedcom',
 324          'geo' => 'application/vnd.dynageo',
 325          'geojson' => 'application/geo+json',
 326          'gex' => 'application/vnd.geometry-explorer',
 327          'ggb' => 'application/vnd.geogebra.file',
 328          'ggt' => 'application/vnd.geogebra.tool',
 329          'ghf' => 'application/vnd.groove-help',
 330          'gif' => 'image/gif',
 331          'gim' => 'application/vnd.groove-identity-message',
 332          'glb' => 'model/gltf-binary',
 333          'gltf' => 'model/gltf+json',
 334          'gml' => 'application/gml+xml',
 335          'gmx' => 'application/vnd.gmx',
 336          'gnumeric' => 'application/x-gnumeric',
 337          'gpg' => 'application/gpg-keys',
 338          'gph' => 'application/vnd.flographit',
 339          'gpx' => 'application/gpx+xml',
 340          'gqf' => 'application/vnd.grafeq',
 341          'gqs' => 'application/vnd.grafeq',
 342          'gram' => 'application/srgs',
 343          'gramps' => 'application/x-gramps-xml',
 344          'gre' => 'application/vnd.geometry-explorer',
 345          'grv' => 'application/vnd.groove-injector',
 346          'grxml' => 'application/srgs+xml',
 347          'gsf' => 'application/x-font-ghostscript',
 348          'gsheet' => 'application/vnd.google-apps.spreadsheet',
 349          'gslides' => 'application/vnd.google-apps.presentation',
 350          'gtar' => 'application/x-gtar',
 351          'gtm' => 'application/vnd.groove-tool-message',
 352          'gtw' => 'model/vnd.gtw',
 353          'gv' => 'text/vnd.graphviz',
 354          'gxf' => 'application/gxf',
 355          'gxt' => 'application/vnd.geonext',
 356          'gz' => 'application/gzip',
 357          'gzip' => 'application/gzip',
 358          'h' => 'text/x-c',
 359          'h261' => 'video/h261',
 360          'h263' => 'video/h263',
 361          'h264' => 'video/h264',
 362          'hal' => 'application/vnd.hal+xml',
 363          'hbci' => 'application/vnd.hbci',
 364          'hbs' => 'text/x-handlebars-template',
 365          'hdd' => 'application/x-virtualbox-hdd',
 366          'hdf' => 'application/x-hdf',
 367          'heic' => 'image/heic',
 368          'heics' => 'image/heic-sequence',
 369          'heif' => 'image/heif',
 370          'heifs' => 'image/heif-sequence',
 371          'hej2' => 'image/hej2k',
 372          'held' => 'application/atsc-held+xml',
 373          'hh' => 'text/x-c',
 374          'hjson' => 'application/hjson',
 375          'hlp' => 'application/winhlp',
 376          'hpgl' => 'application/vnd.hp-hpgl',
 377          'hpid' => 'application/vnd.hp-hpid',
 378          'hps' => 'application/vnd.hp-hps',
 379          'hqx' => 'application/mac-binhex40',
 380          'hsj2' => 'image/hsj2',
 381          'htc' => 'text/x-component',
 382          'htke' => 'application/vnd.kenameaapp',
 383          'htm' => 'text/html',
 384          'html' => 'text/html',
 385          'hvd' => 'application/vnd.yamaha.hv-dic',
 386          'hvp' => 'application/vnd.yamaha.hv-voice',
 387          'hvs' => 'application/vnd.yamaha.hv-script',
 388          'i2g' => 'application/vnd.intergeo',
 389          'icc' => 'application/vnd.iccprofile',
 390          'ice' => 'x-conference/x-cooltalk',
 391          'icm' => 'application/vnd.iccprofile',
 392          'ico' => 'image/x-icon',
 393          'ics' => 'text/calendar',
 394          'ief' => 'image/ief',
 395          'ifb' => 'text/calendar',
 396          'ifm' => 'application/vnd.shana.informed.formdata',
 397          'iges' => 'model/iges',
 398          'igl' => 'application/vnd.igloader',
 399          'igm' => 'application/vnd.insors.igm',
 400          'igs' => 'model/iges',
 401          'igx' => 'application/vnd.micrografx.igx',
 402          'iif' => 'application/vnd.shana.informed.interchange',
 403          'img' => 'application/octet-stream',
 404          'imp' => 'application/vnd.accpac.simply.imp',
 405          'ims' => 'application/vnd.ms-ims',
 406          'in' => 'text/plain',
 407          'ini' => 'text/plain',
 408          'ink' => 'application/inkml+xml',
 409          'inkml' => 'application/inkml+xml',
 410          'install' => 'application/x-install-instructions',
 411          'iota' => 'application/vnd.astraea-software.iota',
 412          'ipfix' => 'application/ipfix',
 413          'ipk' => 'application/vnd.shana.informed.package',
 414          'irm' => 'application/vnd.ibm.rights-management',
 415          'irp' => 'application/vnd.irepository.package+xml',
 416          'iso' => 'application/x-iso9660-image',
 417          'itp' => 'application/vnd.shana.informed.formtemplate',
 418          'its' => 'application/its+xml',
 419          'ivp' => 'application/vnd.immervision-ivp',
 420          'ivu' => 'application/vnd.immervision-ivu',
 421          'jad' => 'text/vnd.sun.j2me.app-descriptor',
 422          'jade' => 'text/jade',
 423          'jam' => 'application/vnd.jam',
 424          'jar' => 'application/java-archive',
 425          'jardiff' => 'application/x-java-archive-diff',
 426          'java' => 'text/x-java-source',
 427          'jhc' => 'image/jphc',
 428          'jisp' => 'application/vnd.jisp',
 429          'jls' => 'image/jls',
 430          'jlt' => 'application/vnd.hp-jlyt',
 431          'jng' => 'image/x-jng',
 432          'jnlp' => 'application/x-java-jnlp-file',
 433          'joda' => 'application/vnd.joost.joda-archive',
 434          'jp2' => 'image/jp2',
 435          'jpe' => 'image/jpeg',
 436          'jpeg' => 'image/jpeg',
 437          'jpf' => 'image/jpx',
 438          'jpg' => 'image/jpeg',
 439          'jpg2' => 'image/jp2',
 440          'jpgm' => 'video/jpm',
 441          'jpgv' => 'video/jpeg',
 442          'jph' => 'image/jph',
 443          'jpm' => 'video/jpm',
 444          'jpx' => 'image/jpx',
 445          'js' => 'application/javascript',
 446          'json' => 'application/json',
 447          'json5' => 'application/json5',
 448          'jsonld' => 'application/ld+json',
 449          'jsonml' => 'application/jsonml+json',
 450          'jsx' => 'text/jsx',
 451          'jxr' => 'image/jxr',
 452          'jxra' => 'image/jxra',
 453          'jxrs' => 'image/jxrs',
 454          'jxs' => 'image/jxs',
 455          'jxsc' => 'image/jxsc',
 456          'jxsi' => 'image/jxsi',
 457          'jxss' => 'image/jxss',
 458          'kar' => 'audio/midi',
 459          'karbon' => 'application/vnd.kde.karbon',
 460          'kdb' => 'application/octet-stream',
 461          'kdbx' => 'application/x-keepass2',
 462          'key' => 'application/x-iwork-keynote-sffkey',
 463          'kfo' => 'application/vnd.kde.kformula',
 464          'kia' => 'application/vnd.kidspiration',
 465          'kml' => 'application/vnd.google-earth.kml+xml',
 466          'kmz' => 'application/vnd.google-earth.kmz',
 467          'kne' => 'application/vnd.kinar',
 468          'knp' => 'application/vnd.kinar',
 469          'kon' => 'application/vnd.kde.kontour',
 470          'kpr' => 'application/vnd.kde.kpresenter',
 471          'kpt' => 'application/vnd.kde.kpresenter',
 472          'kpxx' => 'application/vnd.ds-keypoint',
 473          'ksp' => 'application/vnd.kde.kspread',
 474          'ktr' => 'application/vnd.kahootz',
 475          'ktx' => 'image/ktx',
 476          'ktx2' => 'image/ktx2',
 477          'ktz' => 'application/vnd.kahootz',
 478          'kwd' => 'application/vnd.kde.kword',
 479          'kwt' => 'application/vnd.kde.kword',
 480          'lasxml' => 'application/vnd.las.las+xml',
 481          'latex' => 'application/x-latex',
 482          'lbd' => 'application/vnd.llamagraphics.life-balance.desktop',
 483          'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml',
 484          'les' => 'application/vnd.hhe.lesson-player',
 485          'less' => 'text/less',
 486          'lgr' => 'application/lgr+xml',
 487          'lha' => 'application/octet-stream',
 488          'link66' => 'application/vnd.route66.link66+xml',
 489          'list' => 'text/plain',
 490          'list3820' => 'application/vnd.ibm.modcap',
 491          'listafp' => 'application/vnd.ibm.modcap',
 492          'litcoffee' => 'text/coffeescript',
 493          'lnk' => 'application/x-ms-shortcut',
 494          'log' => 'text/plain',
 495          'lostxml' => 'application/lost+xml',
 496          'lrf' => 'application/octet-stream',
 497          'lrm' => 'application/vnd.ms-lrm',
 498          'ltf' => 'application/vnd.frogans.ltf',
 499          'lua' => 'text/x-lua',
 500          'luac' => 'application/x-lua-bytecode',
 501          'lvp' => 'audio/vnd.lucent.voice',
 502          'lwp' => 'application/vnd.lotus-wordpro',
 503          'lzh' => 'application/octet-stream',
 504          'm1v' => 'video/mpeg',
 505          'm2a' => 'audio/mpeg',
 506          'm2v' => 'video/mpeg',
 507          'm3a' => 'audio/mpeg',
 508          'm3u' => 'text/plain',
 509          'm3u8' => 'application/vnd.apple.mpegurl',
 510          'm4a' => 'audio/x-m4a',
 511          'm4p' => 'application/mp4',
 512          'm4s' => 'video/iso.segment',
 513          'm4u' => 'application/vnd.mpegurl',
 514          'm4v' => 'video/x-m4v',
 515          'm13' => 'application/x-msmediaview',
 516          'm14' => 'application/x-msmediaview',
 517          'm21' => 'application/mp21',
 518          'ma' => 'application/mathematica',
 519          'mads' => 'application/mads+xml',
 520          'maei' => 'application/mmt-aei+xml',
 521          'mag' => 'application/vnd.ecowin.chart',
 522          'maker' => 'application/vnd.framemaker',
 523          'man' => 'text/troff',
 524          'manifest' => 'text/cache-manifest',
 525          'map' => 'application/json',
 526          'mar' => 'application/octet-stream',
 527          'markdown' => 'text/markdown',
 528          'mathml' => 'application/mathml+xml',
 529          'mb' => 'application/mathematica',
 530          'mbk' => 'application/vnd.mobius.mbk',
 531          'mbox' => 'application/mbox',
 532          'mc1' => 'application/vnd.medcalcdata',
 533          'mcd' => 'application/vnd.mcd',
 534          'mcurl' => 'text/vnd.curl.mcurl',
 535          'md' => 'text/markdown',
 536          'mdb' => 'application/x-msaccess',
 537          'mdi' => 'image/vnd.ms-modi',
 538          'mdx' => 'text/mdx',
 539          'me' => 'text/troff',
 540          'mesh' => 'model/mesh',
 541          'meta4' => 'application/metalink4+xml',
 542          'metalink' => 'application/metalink+xml',
 543          'mets' => 'application/mets+xml',
 544          'mfm' => 'application/vnd.mfmp',
 545          'mft' => 'application/rpki-manifest',
 546          'mgp' => 'application/vnd.osgeo.mapguide.package',
 547          'mgz' => 'application/vnd.proteus.magazine',
 548          'mid' => 'audio/midi',
 549          'midi' => 'audio/midi',
 550          'mie' => 'application/x-mie',
 551          'mif' => 'application/vnd.mif',
 552          'mime' => 'message/rfc822',
 553          'mj2' => 'video/mj2',
 554          'mjp2' => 'video/mj2',
 555          'mjs' => 'application/javascript',
 556          'mk3d' => 'video/x-matroska',
 557          'mka' => 'audio/x-matroska',
 558          'mkd' => 'text/x-markdown',
 559          'mks' => 'video/x-matroska',
 560          'mkv' => 'video/x-matroska',
 561          'mlp' => 'application/vnd.dolby.mlp',
 562          'mmd' => 'application/vnd.chipnuts.karaoke-mmd',
 563          'mmf' => 'application/vnd.smaf',
 564          'mml' => 'text/mathml',
 565          'mmr' => 'image/vnd.fujixerox.edmics-mmr',
 566          'mng' => 'video/x-mng',
 567          'mny' => 'application/x-msmoney',
 568          'mobi' => 'application/x-mobipocket-ebook',
 569          'mods' => 'application/mods+xml',
 570          'mov' => 'video/quicktime',
 571          'movie' => 'video/x-sgi-movie',
 572          'mp2' => 'audio/mpeg',
 573          'mp2a' => 'audio/mpeg',
 574          'mp3' => 'audio/mpeg',
 575          'mp4' => 'video/mp4',
 576          'mp4a' => 'audio/mp4',
 577          'mp4s' => 'application/mp4',
 578          'mp4v' => 'video/mp4',
 579          'mp21' => 'application/mp21',
 580          'mpc' => 'application/vnd.mophun.certificate',
 581          'mpd' => 'application/dash+xml',
 582          'mpe' => 'video/mpeg',
 583          'mpeg' => 'video/mpeg',
 584          'mpf' => 'application/media-policy-dataset+xml',
 585          'mpg' => 'video/mpeg',
 586          'mpg4' => 'video/mp4',
 587          'mpga' => 'audio/mpeg',
 588          'mpkg' => 'application/vnd.apple.installer+xml',
 589          'mpm' => 'application/vnd.blueice.multipass',
 590          'mpn' => 'application/vnd.mophun.application',
 591          'mpp' => 'application/vnd.ms-project',
 592          'mpt' => 'application/vnd.ms-project',
 593          'mpy' => 'application/vnd.ibm.minipay',
 594          'mqy' => 'application/vnd.mobius.mqy',
 595          'mrc' => 'application/marc',
 596          'mrcx' => 'application/marcxml+xml',
 597          'ms' => 'text/troff',
 598          'mscml' => 'application/mediaservercontrol+xml',
 599          'mseed' => 'application/vnd.fdsn.mseed',
 600          'mseq' => 'application/vnd.mseq',
 601          'msf' => 'application/vnd.epson.msf',
 602          'msg' => 'application/vnd.ms-outlook',
 603          'msh' => 'model/mesh',
 604          'msi' => 'application/x-msdownload',
 605          'msl' => 'application/vnd.mobius.msl',
 606          'msm' => 'application/octet-stream',
 607          'msp' => 'application/octet-stream',
 608          'msty' => 'application/vnd.muvee.style',
 609          'mtl' => 'model/mtl',
 610          'mts' => 'model/vnd.mts',
 611          'mus' => 'application/vnd.musician',
 612          'musd' => 'application/mmt-usd+xml',
 613          'musicxml' => 'application/vnd.recordare.musicxml+xml',
 614          'mvb' => 'application/x-msmediaview',
 615          'mvt' => 'application/vnd.mapbox-vector-tile',
 616          'mwf' => 'application/vnd.mfer',
 617          'mxf' => 'application/mxf',
 618          'mxl' => 'application/vnd.recordare.musicxml',
 619          'mxmf' => 'audio/mobile-xmf',
 620          'mxml' => 'application/xv+xml',
 621          'mxs' => 'application/vnd.triscape.mxs',
 622          'mxu' => 'video/vnd.mpegurl',
 623          'n-gage' => 'application/vnd.nokia.n-gage.symbian.install',
 624          'n3' => 'text/n3',
 625          'nb' => 'application/mathematica',
 626          'nbp' => 'application/vnd.wolfram.player',
 627          'nc' => 'application/x-netcdf',
 628          'ncx' => 'application/x-dtbncx+xml',
 629          'nfo' => 'text/x-nfo',
 630          'ngdat' => 'application/vnd.nokia.n-gage.data',
 631          'nitf' => 'application/vnd.nitf',
 632          'nlu' => 'application/vnd.neurolanguage.nlu',
 633          'nml' => 'application/vnd.enliven',
 634          'nnd' => 'application/vnd.noblenet-directory',
 635          'nns' => 'application/vnd.noblenet-sealer',
 636          'nnw' => 'application/vnd.noblenet-web',
 637          'npx' => 'image/vnd.net-fpx',
 638          'nq' => 'application/n-quads',
 639          'nsc' => 'application/x-conference',
 640          'nsf' => 'application/vnd.lotus-notes',
 641          'nt' => 'application/n-triples',
 642          'ntf' => 'application/vnd.nitf',
 643          'numbers' => 'application/x-iwork-numbers-sffnumbers',
 644          'nzb' => 'application/x-nzb',
 645          'oa2' => 'application/vnd.fujitsu.oasys2',
 646          'oa3' => 'application/vnd.fujitsu.oasys3',
 647          'oas' => 'application/vnd.fujitsu.oasys',
 648          'obd' => 'application/x-msbinder',
 649          'obgx' => 'application/vnd.openblox.game+xml',
 650          'obj' => 'model/obj',
 651          'oda' => 'application/oda',
 652          'odb' => 'application/vnd.oasis.opendocument.database',
 653          'odc' => 'application/vnd.oasis.opendocument.chart',
 654          'odf' => 'application/vnd.oasis.opendocument.formula',
 655          'odft' => 'application/vnd.oasis.opendocument.formula-template',
 656          'odg' => 'application/vnd.oasis.opendocument.graphics',
 657          'odi' => 'application/vnd.oasis.opendocument.image',
 658          'odm' => 'application/vnd.oasis.opendocument.text-master',
 659          'odp' => 'application/vnd.oasis.opendocument.presentation',
 660          'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
 661          'odt' => 'application/vnd.oasis.opendocument.text',
 662          'oga' => 'audio/ogg',
 663          'ogex' => 'model/vnd.opengex',
 664          'ogg' => 'audio/ogg',
 665          'ogv' => 'video/ogg',
 666          'ogx' => 'application/ogg',
 667          'omdoc' => 'application/omdoc+xml',
 668          'onepkg' => 'application/onenote',
 669          'onetmp' => 'application/onenote',
 670          'onetoc' => 'application/onenote',
 671          'onetoc2' => 'application/onenote',
 672          'opf' => 'application/oebps-package+xml',
 673          'opml' => 'text/x-opml',
 674          'oprc' => 'application/vnd.palm',
 675          'opus' => 'audio/ogg',
 676          'org' => 'text/x-org',
 677          'osf' => 'application/vnd.yamaha.openscoreformat',
 678          'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml',
 679          'osm' => 'application/vnd.openstreetmap.data+xml',
 680          'otc' => 'application/vnd.oasis.opendocument.chart-template',
 681          'otf' => 'font/otf',
 682          'otg' => 'application/vnd.oasis.opendocument.graphics-template',
 683          'oth' => 'application/vnd.oasis.opendocument.text-web',
 684          'oti' => 'application/vnd.oasis.opendocument.image-template',
 685          'otp' => 'application/vnd.oasis.opendocument.presentation-template',
 686          'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
 687          'ott' => 'application/vnd.oasis.opendocument.text-template',
 688          'ova' => 'application/x-virtualbox-ova',
 689          'ovf' => 'application/x-virtualbox-ovf',
 690          'owl' => 'application/rdf+xml',
 691          'oxps' => 'application/oxps',
 692          'oxt' => 'application/vnd.openofficeorg.extension',
 693          'p' => 'text/x-pascal',
 694          'p7a' => 'application/x-pkcs7-signature',
 695          'p7b' => 'application/x-pkcs7-certificates',
 696          'p7c' => 'application/pkcs7-mime',
 697          'p7m' => 'application/pkcs7-mime',
 698          'p7r' => 'application/x-pkcs7-certreqresp',
 699          'p7s' => 'application/pkcs7-signature',
 700          'p8' => 'application/pkcs8',
 701          'p10' => 'application/x-pkcs10',
 702          'p12' => 'application/x-pkcs12',
 703          'pac' => 'application/x-ns-proxy-autoconfig',
 704          'pages' => 'application/x-iwork-pages-sffpages',
 705          'pas' => 'text/x-pascal',
 706          'paw' => 'application/vnd.pawaafile',
 707          'pbd' => 'application/vnd.powerbuilder6',
 708          'pbm' => 'image/x-portable-bitmap',
 709          'pcap' => 'application/vnd.tcpdump.pcap',
 710          'pcf' => 'application/x-font-pcf',
 711          'pcl' => 'application/vnd.hp-pcl',
 712          'pclxl' => 'application/vnd.hp-pclxl',
 713          'pct' => 'image/x-pict',
 714          'pcurl' => 'application/vnd.curl.pcurl',
 715          'pcx' => 'image/x-pcx',
 716          'pdb' => 'application/x-pilot',
 717          'pde' => 'text/x-processing',
 718          'pdf' => 'application/pdf',
 719          'pem' => 'application/x-x509-user-cert',
 720          'pfa' => 'application/x-font-type1',
 721          'pfb' => 'application/x-font-type1',
 722          'pfm' => 'application/x-font-type1',
 723          'pfr' => 'application/font-tdpfr',
 724          'pfx' => 'application/x-pkcs12',
 725          'pgm' => 'image/x-portable-graymap',
 726          'pgn' => 'application/x-chess-pgn',
 727          'pgp' => 'application/pgp',
 728          'phar' => 'application/octet-stream',
 729          'php' => 'application/x-httpd-php',
 730          'php3' => 'application/x-httpd-php',
 731          'php4' => 'application/x-httpd-php',
 732          'phps' => 'application/x-httpd-php-source',
 733          'phtml' => 'application/x-httpd-php',
 734          'pic' => 'image/x-pict',
 735          'pkg' => 'application/octet-stream',
 736          'pki' => 'application/pkixcmp',
 737          'pkipath' => 'application/pkix-pkipath',
 738          'pkpass' => 'application/vnd.apple.pkpass',
 739          'pl' => 'application/x-perl',
 740          'plb' => 'application/vnd.3gpp.pic-bw-large',
 741          'plc' => 'application/vnd.mobius.plc',
 742          'plf' => 'application/vnd.pocketlearn',
 743          'pls' => 'application/pls+xml',
 744          'pm' => 'application/x-perl',
 745          'pml' => 'application/vnd.ctc-posml',
 746          'png' => 'image/png',
 747          'pnm' => 'image/x-portable-anymap',
 748          'portpkg' => 'application/vnd.macports.portpkg',
 749          'pot' => 'application/vnd.ms-powerpoint',
 750          'potm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
 751          'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template',
 752          'ppa' => 'application/vnd.ms-powerpoint',
 753          'ppam' => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
 754          'ppd' => 'application/vnd.cups-ppd',
 755          'ppm' => 'image/x-portable-pixmap',
 756          'pps' => 'application/vnd.ms-powerpoint',
 757          'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
 758          'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
 759          'ppt' => 'application/powerpoint',
 760          'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
 761          'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
 762          'pqa' => 'application/vnd.palm',
 763          'prc' => 'model/prc',
 764          'pre' => 'application/vnd.lotus-freelance',
 765          'prf' => 'application/pics-rules',
 766          'provx' => 'application/provenance+xml',
 767          'ps' => 'application/postscript',
 768          'psb' => 'application/vnd.3gpp.pic-bw-small',
 769          'psd' => 'application/x-photoshop',
 770          'psf' => 'application/x-font-linux-psf',
 771          'pskcxml' => 'application/pskc+xml',
 772          'pti' => 'image/prs.pti',
 773          'ptid' => 'application/vnd.pvi.ptid1',
 774          'pub' => 'application/x-mspublisher',
 775          'pvb' => 'application/vnd.3gpp.pic-bw-var',
 776          'pwn' => 'application/vnd.3m.post-it-notes',
 777          'pya' => 'audio/vnd.ms-playready.media.pya',
 778          'pyv' => 'video/vnd.ms-playready.media.pyv',
 779          'qam' => 'application/vnd.epson.quickanime',
 780          'qbo' => 'application/vnd.intu.qbo',
 781          'qfx' => 'application/vnd.intu.qfx',
 782          'qps' => 'application/vnd.publishare-delta-tree',
 783          'qt' => 'video/quicktime',
 784          'qwd' => 'application/vnd.quark.quarkxpress',
 785          'qwt' => 'application/vnd.quark.quarkxpress',
 786          'qxb' => 'application/vnd.quark.quarkxpress',
 787          'qxd' => 'application/vnd.quark.quarkxpress',
 788          'qxl' => 'application/vnd.quark.quarkxpress',
 789          'qxt' => 'application/vnd.quark.quarkxpress',
 790          'ra' => 'audio/x-realaudio',
 791          'ram' => 'audio/x-pn-realaudio',
 792          'raml' => 'application/raml+yaml',
 793          'rapd' => 'application/route-apd+xml',
 794          'rar' => 'application/x-rar',
 795          'ras' => 'image/x-cmu-raster',
 796          'rcprofile' => 'application/vnd.ipunplugged.rcprofile',
 797          'rdf' => 'application/rdf+xml',
 798          'rdz' => 'application/vnd.data-vision.rdz',
 799          'relo' => 'application/p2p-overlay+xml',
 800          'rep' => 'application/vnd.businessobjects',
 801          'res' => 'application/x-dtbresource+xml',
 802          'rgb' => 'image/x-rgb',
 803          'rif' => 'application/reginfo+xml',
 804          'rip' => 'audio/vnd.rip',
 805          'ris' => 'application/x-research-info-systems',
 806          'rl' => 'application/resource-lists+xml',
 807          'rlc' => 'image/vnd.fujixerox.edmics-rlc',
 808          'rld' => 'application/resource-lists-diff+xml',
 809          'rm' => 'audio/x-pn-realaudio',
 810          'rmi' => 'audio/midi',
 811          'rmp' => 'audio/x-pn-realaudio-plugin',
 812          'rms' => 'application/vnd.jcp.javame.midlet-rms',
 813          'rmvb' => 'application/vnd.rn-realmedia-vbr',
 814          'rnc' => 'application/relax-ng-compact-syntax',
 815          'rng' => 'application/xml',
 816          'roa' => 'application/rpki-roa',
 817          'roff' => 'text/troff',
 818          'rp9' => 'application/vnd.cloanto.rp9',
 819          'rpm' => 'audio/x-pn-realaudio-plugin',
 820          'rpss' => 'application/vnd.nokia.radio-presets',
 821          'rpst' => 'application/vnd.nokia.radio-preset',
 822          'rq' => 'application/sparql-query',
 823          'rs' => 'application/rls-services+xml',
 824          'rsa' => 'application/x-pkcs7',
 825          'rsat' => 'application/atsc-rsat+xml',
 826          'rsd' => 'application/rsd+xml',
 827          'rsheet' => 'application/urc-ressheet+xml',
 828          'rss' => 'application/rss+xml',
 829          'rtf' => 'text/rtf',
 830          'rtx' => 'text/richtext',
 831          'run' => 'application/x-makeself',
 832          'rusd' => 'application/route-usd+xml',
 833          'rv' => 'video/vnd.rn-realvideo',
 834          's' => 'text/x-asm',
 835          's3m' => 'audio/s3m',
 836          'saf' => 'application/vnd.yamaha.smaf-audio',
 837          'sass' => 'text/x-sass',
 838          'sbml' => 'application/sbml+xml',
 839          'sc' => 'application/vnd.ibm.secure-container',
 840          'scd' => 'application/x-msschedule',
 841          'scm' => 'application/vnd.lotus-screencam',
 842          'scq' => 'application/scvp-cv-request',
 843          'scs' => 'application/scvp-cv-response',
 844          'scss' => 'text/x-scss',
 845          'scurl' => 'text/vnd.curl.scurl',
 846          'sda' => 'application/vnd.stardivision.draw',
 847          'sdc' => 'application/vnd.stardivision.calc',
 848          'sdd' => 'application/vnd.stardivision.impress',
 849          'sdkd' => 'application/vnd.solent.sdkm+xml',
 850          'sdkm' => 'application/vnd.solent.sdkm+xml',
 851          'sdp' => 'application/sdp',
 852          'sdw' => 'application/vnd.stardivision.writer',
 853          'sea' => 'application/octet-stream',
 854          'see' => 'application/vnd.seemail',
 855          'seed' => 'application/vnd.fdsn.seed',
 856          'sema' => 'application/vnd.sema',
 857          'semd' => 'application/vnd.semd',
 858          'semf' => 'application/vnd.semf',
 859          'senmlx' => 'application/senml+xml',
 860          'sensmlx' => 'application/sensml+xml',
 861          'ser' => 'application/java-serialized-object',
 862          'setpay' => 'application/set-payment-initiation',
 863          'setreg' => 'application/set-registration-initiation',
 864          'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data',
 865          'sfs' => 'application/vnd.spotfire.sfs',
 866          'sfv' => 'text/x-sfv',
 867          'sgi' => 'image/sgi',
 868          'sgl' => 'application/vnd.stardivision.writer-global',
 869          'sgm' => 'text/sgml',
 870          'sgml' => 'text/sgml',
 871          'sh' => 'application/x-sh',
 872          'shar' => 'application/x-shar',
 873          'shex' => 'text/shex',
 874          'shf' => 'application/shf+xml',
 875          'shtml' => 'text/html',
 876          'sid' => 'image/x-mrsid-image',
 877          'sieve' => 'application/sieve',
 878          'sig' => 'application/pgp-signature',
 879          'sil' => 'audio/silk',
 880          'silo' => 'model/mesh',
 881          'sis' => 'application/vnd.symbian.install',
 882          'sisx' => 'application/vnd.symbian.install',
 883          'sit' => 'application/x-stuffit',
 884          'sitx' => 'application/x-stuffitx',
 885          'siv' => 'application/sieve',
 886          'skd' => 'application/vnd.koan',
 887          'skm' => 'application/vnd.koan',
 888          'skp' => 'application/vnd.koan',
 889          'skt' => 'application/vnd.koan',
 890          'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12',
 891          'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide',
 892          'slim' => 'text/slim',
 893          'slm' => 'text/slim',
 894          'sls' => 'application/route-s-tsid+xml',
 895          'slt' => 'application/vnd.epson.salt',
 896          'sm' => 'application/vnd.stepmania.stepchart',
 897          'smf' => 'application/vnd.stardivision.math',
 898          'smi' => 'application/smil',
 899          'smil' => 'application/smil',
 900          'smv' => 'video/x-smv',
 901          'smzip' => 'application/vnd.stepmania.package',
 902          'snd' => 'audio/basic',
 903          'snf' => 'application/x-font-snf',
 904          'so' => 'application/octet-stream',
 905          'spc' => 'application/x-pkcs7-certificates',
 906          'spdx' => 'text/spdx',
 907          'spf' => 'application/vnd.yamaha.smaf-phrase',
 908          'spl' => 'application/x-futuresplash',
 909          'spot' => 'text/vnd.in3d.spot',
 910          'spp' => 'application/scvp-vp-response',
 911          'spq' => 'application/scvp-vp-request',
 912          'spx' => 'audio/ogg',
 913          'sql' => 'application/x-sql',
 914          'src' => 'application/x-wais-source',
 915          'srt' => 'application/x-subrip',
 916          'sru' => 'application/sru+xml',
 917          'srx' => 'application/sparql-results+xml',
 918          'ssdl' => 'application/ssdl+xml',
 919          'sse' => 'application/vnd.kodak-descriptor',
 920          'ssf' => 'application/vnd.epson.ssf',
 921          'ssml' => 'application/ssml+xml',
 922          'sst' => 'application/octet-stream',
 923          'st' => 'application/vnd.sailingtracker.track',
 924          'stc' => 'application/vnd.sun.xml.calc.template',
 925          'std' => 'application/vnd.sun.xml.draw.template',
 926          'stf' => 'application/vnd.wt.stf',
 927          'sti' => 'application/vnd.sun.xml.impress.template',
 928          'stk' => 'application/hyperstudio',
 929          'stl' => 'model/stl',
 930          'stpx' => 'model/step+xml',
 931          'stpxz' => 'model/step-xml+zip',
 932          'stpz' => 'model/step+zip',
 933          'str' => 'application/vnd.pg.format',
 934          'stw' => 'application/vnd.sun.xml.writer.template',
 935          'styl' => 'text/stylus',
 936          'stylus' => 'text/stylus',
 937          'sub' => 'text/vnd.dvb.subtitle',
 938          'sus' => 'application/vnd.sus-calendar',
 939          'susp' => 'application/vnd.sus-calendar',
 940          'sv4cpio' => 'application/x-sv4cpio',
 941          'sv4crc' => 'application/x-sv4crc',
 942          'svc' => 'application/vnd.dvb.service',
 943          'svd' => 'application/vnd.svd',
 944          'svg' => 'image/svg+xml',
 945          'svgz' => 'image/svg+xml',
 946          'swa' => 'application/x-director',
 947          'swf' => 'application/x-shockwave-flash',
 948          'swi' => 'application/vnd.aristanetworks.swi',
 949          'swidtag' => 'application/swid+xml',
 950          'sxc' => 'application/vnd.sun.xml.calc',
 951          'sxd' => 'application/vnd.sun.xml.draw',
 952          'sxg' => 'application/vnd.sun.xml.writer.global',
 953          'sxi' => 'application/vnd.sun.xml.impress',
 954          'sxm' => 'application/vnd.sun.xml.math',
 955          'sxw' => 'application/vnd.sun.xml.writer',
 956          't' => 'text/troff',
 957          't3' => 'application/x-t3vm-image',
 958          't38' => 'image/t38',
 959          'taglet' => 'application/vnd.mynfc',
 960          'tao' => 'application/vnd.tao.intent-module-archive',
 961          'tap' => 'image/vnd.tencent.tap',
 962          'tar' => 'application/x-tar',
 963          'tcap' => 'application/vnd.3gpp2.tcap',
 964          'tcl' => 'application/x-tcl',
 965          'td' => 'application/urc-targetdesc+xml',
 966          'teacher' => 'application/vnd.smart.teacher',
 967          'tei' => 'application/tei+xml',
 968          'teicorpus' => 'application/tei+xml',
 969          'tex' => 'application/x-tex',
 970          'texi' => 'application/x-texinfo',
 971          'texinfo' => 'application/x-texinfo',
 972          'text' => 'text/plain',
 973          'tfi' => 'application/thraud+xml',
 974          'tfm' => 'application/x-tex-tfm',
 975          'tfx' => 'image/tiff-fx',
 976          'tga' => 'image/x-tga',
 977          'tgz' => 'application/x-tar',
 978          'thmx' => 'application/vnd.ms-officetheme',
 979          'tif' => 'image/tiff',
 980          'tiff' => 'image/tiff',
 981          'tk' => 'application/x-tcl',
 982          'tmo' => 'application/vnd.tmobile-livetv',
 983          'toml' => 'application/toml',
 984          'torrent' => 'application/x-bittorrent',
 985          'tpl' => 'application/vnd.groove-tool-template',
 986          'tpt' => 'application/vnd.trid.tpt',
 987          'tr' => 'text/troff',
 988          'tra' => 'application/vnd.trueapp',
 989          'trig' => 'application/trig',
 990          'trm' => 'application/x-msterminal',
 991          'ts' => 'video/mp2t',
 992          'tsd' => 'application/timestamped-data',
 993          'tsv' => 'text/tab-separated-values',
 994          'ttc' => 'font/collection',
 995          'ttf' => 'font/ttf',
 996          'ttl' => 'text/turtle',
 997          'ttml' => 'application/ttml+xml',
 998          'twd' => 'application/vnd.simtech-mindmapper',
 999          'twds' => 'application/vnd.simtech-mindmapper',
1000          'txd' => 'application/vnd.genomatix.tuxedo',
1001          'txf' => 'application/vnd.mobius.txf',
1002          'txt' => 'text/plain',
1003          'u3d' => 'model/u3d',
1004          'u8dsn' => 'message/global-delivery-status',
1005          'u8hdr' => 'message/global-headers',
1006          'u8mdn' => 'message/global-disposition-notification',
1007          'u8msg' => 'message/global',
1008          'u32' => 'application/x-authorware-bin',
1009          'ubj' => 'application/ubjson',
1010          'udeb' => 'application/x-debian-package',
1011          'ufd' => 'application/vnd.ufdl',
1012          'ufdl' => 'application/vnd.ufdl',
1013          'ulx' => 'application/x-glulx',
1014          'umj' => 'application/vnd.umajin',
1015          'unityweb' => 'application/vnd.unity',
1016          'uoml' => 'application/vnd.uoml+xml',
1017          'uri' => 'text/uri-list',
1018          'uris' => 'text/uri-list',
1019          'urls' => 'text/uri-list',
1020          'usdz' => 'model/vnd.usdz+zip',
1021          'ustar' => 'application/x-ustar',
1022          'utz' => 'application/vnd.uiq.theme',
1023          'uu' => 'text/x-uuencode',
1024          'uva' => 'audio/vnd.dece.audio',
1025          'uvd' => 'application/vnd.dece.data',
1026          'uvf' => 'application/vnd.dece.data',
1027          'uvg' => 'image/vnd.dece.graphic',
1028          'uvh' => 'video/vnd.dece.hd',
1029          'uvi' => 'image/vnd.dece.graphic',
1030          'uvm' => 'video/vnd.dece.mobile',
1031          'uvp' => 'video/vnd.dece.pd',
1032          'uvs' => 'video/vnd.dece.sd',
1033          'uvt' => 'application/vnd.dece.ttml+xml',
1034          'uvu' => 'video/vnd.uvvu.mp4',
1035          'uvv' => 'video/vnd.dece.video',
1036          'uvva' => 'audio/vnd.dece.audio',
1037          'uvvd' => 'application/vnd.dece.data',
1038          'uvvf' => 'application/vnd.dece.data',
1039          'uvvg' => 'image/vnd.dece.graphic',
1040          'uvvh' => 'video/vnd.dece.hd',
1041          'uvvi' => 'image/vnd.dece.graphic',
1042          'uvvm' => 'video/vnd.dece.mobile',
1043          'uvvp' => 'video/vnd.dece.pd',
1044          'uvvs' => 'video/vnd.dece.sd',
1045          'uvvt' => 'application/vnd.dece.ttml+xml',
1046          'uvvu' => 'video/vnd.uvvu.mp4',
1047          'uvvv' => 'video/vnd.dece.video',
1048          'uvvx' => 'application/vnd.dece.unspecified',
1049          'uvvz' => 'application/vnd.dece.zip',
1050          'uvx' => 'application/vnd.dece.unspecified',
1051          'uvz' => 'application/vnd.dece.zip',
1052          'vbox' => 'application/x-virtualbox-vbox',
1053          'vbox-extpack' => 'application/x-virtualbox-vbox-extpack',
1054          'vcard' => 'text/vcard',
1055          'vcd' => 'application/x-cdlink',
1056          'vcf' => 'text/x-vcard',
1057          'vcg' => 'application/vnd.groove-vcard',
1058          'vcs' => 'text/x-vcalendar',
1059          'vcx' => 'application/vnd.vcx',
1060          'vdi' => 'application/x-virtualbox-vdi',
1061          'vds' => 'model/vnd.sap.vds',
1062          'vhd' => 'application/x-virtualbox-vhd',
1063          'vis' => 'application/vnd.visionary',
1064          'viv' => 'video/vnd.vivo',
1065          'vlc' => 'application/videolan',
1066          'vmdk' => 'application/x-virtualbox-vmdk',
1067          'vob' => 'video/x-ms-vob',
1068          'vor' => 'application/vnd.stardivision.writer',
1069          'vox' => 'application/x-authorware-bin',
1070          'vrml' => 'model/vrml',
1071          'vsd' => 'application/vnd.visio',
1072          'vsf' => 'application/vnd.vsf',
1073          'vss' => 'application/vnd.visio',
1074          'vst' => 'application/vnd.visio',
1075          'vsw' => 'application/vnd.visio',
1076          'vtf' => 'image/vnd.valve.source.texture',
1077          'vtt' => 'text/vtt',
1078          'vtu' => 'model/vnd.vtu',
1079          'vxml' => 'application/voicexml+xml',
1080          'w3d' => 'application/x-director',
1081          'wad' => 'application/x-doom',
1082          'wadl' => 'application/vnd.sun.wadl+xml',
1083          'war' => 'application/java-archive',
1084          'wasm' => 'application/wasm',
1085          'wav' => 'audio/x-wav',
1086          'wax' => 'audio/x-ms-wax',
1087          'wbmp' => 'image/vnd.wap.wbmp',
1088          'wbs' => 'application/vnd.criticaltools.wbs+xml',
1089          'wbxml' => 'application/wbxml',
1090          'wcm' => 'application/vnd.ms-works',
1091          'wdb' => 'application/vnd.ms-works',
1092          'wdp' => 'image/vnd.ms-photo',
1093          'weba' => 'audio/webm',
1094          'webapp' => 'application/x-web-app-manifest+json',
1095          'webm' => 'video/webm',
1096          'webmanifest' => 'application/manifest+json',
1097          'webp' => 'image/webp',
1098          'wg' => 'application/vnd.pmi.widget',
1099          'wgt' => 'application/widget',
1100          'wif' => 'application/watcherinfo+xml',
1101          'wks' => 'application/vnd.ms-works',
1102          'wm' => 'video/x-ms-wm',
1103          'wma' => 'audio/x-ms-wma',
1104          'wmd' => 'application/x-ms-wmd',
1105          'wmf' => 'image/wmf',
1106          'wml' => 'text/vnd.wap.wml',
1107          'wmlc' => 'application/wmlc',
1108          'wmls' => 'text/vnd.wap.wmlscript',
1109          'wmlsc' => 'application/vnd.wap.wmlscriptc',
1110          'wmv' => 'video/x-ms-wmv',
1111          'wmx' => 'video/x-ms-wmx',
1112          'wmz' => 'application/x-msmetafile',
1113          'woff' => 'font/woff',
1114          'woff2' => 'font/woff2',
1115          'word' => 'application/msword',
1116          'wpd' => 'application/vnd.wordperfect',
1117          'wpl' => 'application/vnd.ms-wpl',
1118          'wps' => 'application/vnd.ms-works',
1119          'wqd' => 'application/vnd.wqd',
1120          'wri' => 'application/x-mswrite',
1121          'wrl' => 'model/vrml',
1122          'wsc' => 'message/vnd.wfa.wsc',
1123          'wsdl' => 'application/wsdl+xml',
1124          'wspolicy' => 'application/wspolicy+xml',
1125          'wtb' => 'application/vnd.webturbo',
1126          'wvx' => 'video/x-ms-wvx',
1127          'x3d' => 'model/x3d+xml',
1128          'x3db' => 'model/x3d+fastinfoset',
1129          'x3dbz' => 'model/x3d+binary',
1130          'x3dv' => 'model/x3d-vrml',
1131          'x3dvz' => 'model/x3d+vrml',
1132          'x3dz' => 'model/x3d+xml',
1133          'x32' => 'application/x-authorware-bin',
1134          'x_b' => 'model/vnd.parasolid.transmit.binary',
1135          'x_t' => 'model/vnd.parasolid.transmit.text',
1136          'xaml' => 'application/xaml+xml',
1137          'xap' => 'application/x-silverlight-app',
1138          'xar' => 'application/vnd.xara',
1139          'xav' => 'application/xcap-att+xml',
1140          'xbap' => 'application/x-ms-xbap',
1141          'xbd' => 'application/vnd.fujixerox.docuworks.binder',
1142          'xbm' => 'image/x-xbitmap',
1143          'xca' => 'application/xcap-caps+xml',
1144          'xcs' => 'application/calendar+xml',
1145          'xdf' => 'application/xcap-diff+xml',
1146          'xdm' => 'application/vnd.syncml.dm+xml',
1147          'xdp' => 'application/vnd.adobe.xdp+xml',
1148          'xdssc' => 'application/dssc+xml',
1149          'xdw' => 'application/vnd.fujixerox.docuworks',
1150          'xel' => 'application/xcap-el+xml',
1151          'xenc' => 'application/xenc+xml',
1152          'xer' => 'application/patch-ops-error+xml',
1153          'xfdf' => 'application/vnd.adobe.xfdf',
1154          'xfdl' => 'application/vnd.xfdl',
1155          'xht' => 'application/xhtml+xml',
1156          'xhtml' => 'application/xhtml+xml',
1157          'xhvml' => 'application/xv+xml',
1158          'xif' => 'image/vnd.xiff',
1159          'xl' => 'application/excel',
1160          'xla' => 'application/vnd.ms-excel',
1161          'xlam' => 'application/vnd.ms-excel.addin.macroEnabled.12',
1162          'xlc' => 'application/vnd.ms-excel',
1163          'xlf' => 'application/xliff+xml',
1164          'xlm' => 'application/vnd.ms-excel',
1165          'xls' => 'application/vnd.ms-excel',
1166          'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
1167          'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',
1168          'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
1169          'xlt' => 'application/vnd.ms-excel',
1170          'xltm' => 'application/vnd.ms-excel.template.macroEnabled.12',
1171          'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
1172          'xlw' => 'application/vnd.ms-excel',
1173          'xm' => 'audio/xm',
1174          'xml' => 'application/xml',
1175          'xns' => 'application/xcap-ns+xml',
1176          'xo' => 'application/vnd.olpc-sugar',
1177          'xop' => 'application/xop+xml',
1178          'xpi' => 'application/x-xpinstall',
1179          'xpl' => 'application/xproc+xml',
1180          'xpm' => 'image/x-xpixmap',
1181          'xpr' => 'application/vnd.is-xpr',
1182          'xps' => 'application/vnd.ms-xpsdocument',
1183          'xpw' => 'application/vnd.intercon.formnet',
1184          'xpx' => 'application/vnd.intercon.formnet',
1185          'xsd' => 'application/xml',
1186          'xsl' => 'application/xml',
1187          'xslt' => 'application/xslt+xml',
1188          'xsm' => 'application/vnd.syncml+xml',
1189          'xspf' => 'application/xspf+xml',
1190          'xul' => 'application/vnd.mozilla.xul+xml',
1191          'xvm' => 'application/xv+xml',
1192          'xvml' => 'application/xv+xml',
1193          'xwd' => 'image/x-xwindowdump',
1194          'xyz' => 'chemical/x-xyz',
1195          'xz' => 'application/x-xz',
1196          'yaml' => 'text/yaml',
1197          'yang' => 'application/yang',
1198          'yin' => 'application/yin+xml',
1199          'yml' => 'text/yaml',
1200          'ymp' => 'text/x-suse-ymp',
1201          'z' => 'application/x-compress',
1202          'z1' => 'application/x-zmachine',
1203          'z2' => 'application/x-zmachine',
1204          'z3' => 'application/x-zmachine',
1205          'z4' => 'application/x-zmachine',
1206          'z5' => 'application/x-zmachine',
1207          'z6' => 'application/x-zmachine',
1208          'z7' => 'application/x-zmachine',
1209          'z8' => 'application/x-zmachine',
1210          'zaz' => 'application/vnd.zzazz.deck+xml',
1211          'zip' => 'application/zip',
1212          'zir' => 'application/vnd.zul',
1213          'zirz' => 'application/vnd.zul',
1214          'zmm' => 'application/vnd.handheld-entertainment+xml',
1215          'zsh' => 'text/x-scriptzsh',
1216      ];
1217  
1218      /**
1219       * Determines the mimetype of a file by looking at its extension.
1220       *
1221       * @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
1222       */
1223      public static function fromFilename(string $filename): ?string
1224      {
1225          return self::fromExtension(pathinfo($filename, PATHINFO_EXTENSION));
1226      }
1227  
1228      /**
1229       * Maps a file extensions to a mimetype.
1230       *
1231       * @link https://raw.githubusercontent.com/jshttp/mime-db/master/db.json
1232       */
1233      public static function fromExtension(string $extension): ?string
1234      {
1235          return self::MIME_TYPES[strtolower($extension)] ?? null;
1236      }
1237  }