UploadedFile class

Framework\HTTP\UploadedFile

Class UploadedFile.

Defined in libraries/http/src/UploadedFile.php

Properties #

$name
-
$type
-
$tmpName
-
$error
-
$size
-
$fullPath
-
$clientType
-
$clientExtension
-
$extension
-
$errorMessage
-
$isMoved
-
$destination
-
$mimeTypes
-

$name

protected string $name

$type

protected string $type

$tmpName

protected string $tmpName

$error

protected int $error

$size

protected int $size

$fullPath

protected string $fullPath

$clientType

protected string $clientType

$clientExtension

protected string $clientExtension

$extension

protected string $extension

$errorMessage

protected string $errorMessage

$isMoved

protected bool $isMoved = false

$destination

protected ?string $destination = NULL

$mimeTypes

protected static array $mimeTypes = array ( 'application/andrew-inset' => array ( 0 => 'ez', ), 'application/applixware' => array ( 0 => 'aw', ), 'application/atom+xml' => array ( 0 => 'atom', ), 'application/atomcat+xml' => array ( 0 => 'atomcat', ), 'application/atomsvc+xml' => array ( 0 => 'atomsvc', ), 'application/ccxml+xml' => array ( 0 => 'ccxml', ), 'application/cdmi-capability' => array ( 0 => 'cdmia', ), 'application/cdmi-container' => array ( 0 => 'cdmic', ), 'application/cdmi-domain' => array ( 0 => 'cdmid', ), 'application/cdmi-object' => array ( 0 => 'cdmio', ), 'application/cdmi-queue' => array ( 0 => 'cdmiq', ), 'application/cu-seeme' => array ( 0 => 'cu', ), 'application/davmount+xml' => array ( 0 => 'davmount', ), 'application/docbook+xml' => array ( 0 => 'dbk', ), 'application/dssc+der' => array ( 0 => 'dssc', ), 'application/dssc+xml' => array ( 0 => 'xdssc', ), 'application/ecmascript' => array ( 0 => 'ecma', ), 'application/emma+xml' => array ( 0 => 'emma', ), 'application/epub+zip' => array ( 0 => 'epub', ), 'application/exi' => array ( 0 => 'exi', ), 'application/font-tdpfr' => array ( 0 => 'pfr', ), 'application/gml+xml' => array ( 0 => 'gml', ), 'application/gpx+xml' => array ( 0 => 'gpx', ), 'application/gxf' => array ( 0 => 'gxf', ), 'application/hyperstudio' => array ( 0 => 'stk', ), 'application/inkml+xml' => array ( 0 => 'ink', 1 => 'inkml', ), 'application/ipfix' => array ( 0 => 'ipfix', ), 'application/java-archive' => array ( 0 => 'jar', ), 'application/java-serialized-object' => array ( 0 => 'ser', ), 'application/java-vm' => array ( 0 => 'class', ), 'application/javascript' => array ( 0 => 'js', ), 'application/json' => array ( 0 => 'json', ), 'application/jsonml+json' => array ( 0 => 'jsonml', ), 'application/lost+xml' => array ( 0 => 'lostxml', ), 'application/mac-binhex40' => array ( 0 => 'hqx', ), 'application/mac-compactpro' => array ( 0 => 'cpt', ), 'application/mads+xml' => array ( 0 => 'mads', ), 'application/marc' => array ( 0 => 'mrc', ), 'application/marcxml+xml' => array ( 0 => 'mrcx', ), 'application/mathematica' => array ( 0 => 'ma', 1 => 'mb', 2 => 'nb', ), 'application/mathml+xml' => array ( 0 => 'mathml', ), 'application/mbox' => array ( 0 => 'mbox', ), 'application/mediaservercontrol+xml' => array ( 0 => 'mscml', ), 'application/metalink+xml' => array ( 0 => 'metalink', ), 'application/metalink4+xml' => array ( 0 => 'meta4', ), 'application/mets+xml' => array ( 0 => 'mets', ), 'application/mods+xml' => array ( 0 => 'mods', ), 'application/mp21' => array ( 0 => 'm21', 1 => 'mp21', ), 'application/mp4' => array ( 0 => 'mp4s', ), 'application/msword' => array ( 0 => 'doc', 1 => 'dot', ), 'application/mxf' => array ( 0 => 'mxf', ), 'application/octet-stream' => array ( 0 => 'bin', 1 => 'bpk', 2 => 'deploy', 3 => 'dist', 4 => 'distz', 5 => 'dms', 6 => 'dump', 7 => 'elc', 8 => 'lrf', 9 => 'mar', 10 => 'pkg', 11 => 'so', ), 'application/oda' => array ( 0 => 'oda', ), 'application/oebps-package+xml' => array ( 0 => 'opf', ), 'application/ogg' => array ( 0 => 'ogx', ), 'application/omdoc+xml' => array ( 0 => 'omdoc', ), 'application/onenote' => array ( 0 => 'onepkg', 1 => 'onetmp', 2 => 'onetoc', 3 => 'onetoc2', ), 'application/oxps' => array ( 0 => 'oxps', ), 'application/patch-ops-error+xml' => array ( 0 => 'xer', ), 'application/pdf' => array ( 0 => 'pdf', ), 'application/pgp-encrypted' => array ( 0 => 'pgp', ), 'application/pgp-signature' => array ( 0 => 'asc', 1 => 'sig', ), 'application/pics-rules' => array ( 0 => 'prf', ), 'application/pkcs10' => array ( 0 => 'p10', ), 'application/pkcs7-mime' => array ( 0 => 'p7c', 1 => 'p7m', ), 'application/pkcs7-signature' => array ( 0 => 'p7s', ), 'application/pkcs8' => array ( 0 => 'p8', ), 'application/pkix-attr-cert' => array ( 0 => 'ac', ), 'application/pkix-cert' => array ( 0 => 'cer', ), 'application/pkix-crl' => array ( 0 => 'crl', ), 'application/pkix-pkipath' => array ( 0 => 'pkipath', ), 'application/pkixcmp' => array ( 0 => 'pki', ), 'application/pls+xml' => array ( 0 => 'pls', ), 'application/postscript' => array ( 0 => 'ai', 1 => 'eps', 2 => 'ps', ), 'application/prs.cww' => array ( 0 => 'cww', ), 'application/pskc+xml' => array ( 0 => 'pskcxml', ), 'application/rdf+xml' => array ( 0 => 'rdf', ), 'application/reginfo+xml' => array ( 0 => 'rif', ), 'application/relax-ng-compact-syntax' => array ( 0 => 'rnc', ), 'application/resource-lists+xml' => array ( 0 => 'rl', ), 'application/resource-lists-diff+xml' => array ( 0 => 'rld', ), 'application/rls-services+xml' => array ( 0 => 'rs', ), 'application/rpki-ghostbusters' => array ( 0 => 'gbr', ), 'application/rpki-manifest' => array ( 0 => 'mft', ), 'application/rpki-roa' => array ( 0 => 'roa', ), 'application/rsd+xml' => array ( 0 => 'rsd', ), 'application/rss+xml' => array ( 0 => 'rss', ), 'application/rtf' => array ( 0 => 'rtf', ), 'application/sbml+xml' => array ( 0 => 'sbml', ), 'application/scvp-cv-request' => array ( 0 => 'scq', ), 'application/scvp-cv-response' => array ( 0 => 'scs', ), 'application/scvp-vp-request' => array ( 0 => 'spq', ), 'application/scvp-vp-response' => array ( 0 => 'spp', ), 'application/sdp' => array ( 0 => 'sdp', ), 'application/set-payment-initiation' => array ( 0 => 'setpay', ), 'application/set-registration-initiation' => array ( 0 => 'setreg', ), 'application/shf+xml' => array ( 0 => 'shf', ), 'application/smil+xml' => array ( 0 => 'smi', 1 => 'smil', ), 'application/sparql-query' => array ( 0 => 'rq', ), 'application/sparql-results+xml' => array ( 0 => 'srx', ), 'application/srgs' => array ( 0 => 'gram', ), 'application/srgs+xml' => array ( 0 => 'grxml', ), 'application/sru+xml' => array ( 0 => 'sru', ), 'application/ssdl+xml' => array ( 0 => 'ssdl', ), 'application/ssml+xml' => array ( 0 => 'ssml', ), 'application/tei+xml' => array ( 0 => 'tei', 1 => 'teicorpus', ), 'application/thraud+xml' => array ( 0 => 'tfi', ), 'application/timestamped-data' => array ( 0 => 'tsd', ), 'application/vnd.3gpp.pic-bw-large' => array ( 0 => 'plb', ), 'application/vnd.3gpp.pic-bw-small' => array ( 0 => 'psb', ), 'application/vnd.3gpp.pic-bw-var' => array ( 0 => 'pvb', ), 'application/vnd.3gpp2.tcap' => array ( 0 => 'tcap', ), 'application/vnd.3m.post-it-notes' => array ( 0 => 'pwn', ), 'application/vnd.accpac.simply.aso' => array ( 0 => 'aso', ), 'application/vnd.accpac.simply.imp' => array ( 0 => 'imp', ), 'application/vnd.acucobol' => array ( 0 => 'acu', ), 'application/vnd.acucorp' => array ( 0 => 'acutc', 1 => 'atc', ), 'application/vnd.adobe.air-application-installer-package+zip' => array ( 0 => 'air', ), 'application/vnd.adobe.formscentral.fcdt' => array ( 0 => 'fcdt', ), 'application/vnd.adobe.fxp' => array ( 0 => 'fxp', 1 => 'fxpl', ), 'application/vnd.adobe.xdp+xml' => array ( 0 => 'xdp', ), 'application/vnd.adobe.xfdf' => array ( 0 => 'xfdf', ), 'application/vnd.ahead.space' => array ( 0 => 'ahead', ), 'application/vnd.airzip.filesecure.azf' => array ( 0 => 'azf', ), 'application/vnd.airzip.filesecure.azs' => array ( 0 => 'azs', ), 'application/vnd.amazon.ebook' => array ( 0 => 'azw', ), 'application/vnd.americandynamics.acc' => array ( 0 => 'acc', ), 'application/vnd.amiga.ami' => array ( 0 => 'ami', ), 'application/vnd.android.package-archive' => array ( 0 => 'apk', ), 'application/vnd.anser-web-certificate-issue-initiation' => array ( 0 => 'cii', ), 'application/vnd.anser-web-funds-transfer-initiation' => array ( 0 => 'fti', ), 'application/vnd.antix.game-component' => array ( 0 => 'atx', ), 'application/vnd.apple.installer+xml' => array ( 0 => 'mpkg', ), 'application/vnd.apple.mpegurl' => array ( 0 => 'm3u8', ), 'application/vnd.aristanetworks.swi' => array ( 0 => 'swi', ), 'application/vnd.astraea-software.iota' => array ( 0 => 'iota', ), 'application/vnd.audiograph' => array ( 0 => 'aep', ), 'application/vnd.blueice.multipass' => array ( 0 => 'mpm', ), 'application/vnd.bmi' => array ( 0 => 'bmi', ), 'application/vnd.businessobjects' => array ( 0 => 'rep', ), 'application/vnd.chemdraw+xml' => array ( 0 => 'cdxml', ), 'application/vnd.chipnuts.karaoke-mmd' => array ( 0 => 'mmd', ), 'application/vnd.cinderella' => array ( 0 => 'cdy', ), 'application/vnd.claymore' => array ( 0 => 'cla', ), 'application/vnd.cloanto.rp9' => array ( 0 => 'rp9', ), 'application/vnd.clonk.c4group' => array ( 0 => 'c4d', 1 => 'c4f', 2 => 'c4g', 3 => 'c4p', 4 => 'c4u', ), 'application/vnd.cluetrust.cartomobile-config' => array ( 0 => 'c11amc', ), 'application/vnd.cluetrust.cartomobile-config-pkg' => array ( 0 => 'c11amz', ), 'application/vnd.commonspace' => array ( 0 => 'csp', ), 'application/vnd.contact.cmsg' => array ( 0 => 'cdbcmsg', ), 'application/vnd.cosmocaller' => array ( 0 => 'cmc', ), 'application/vnd.crick.clicker' => array ( 0 => 'clkx', ), 'application/vnd.crick.clicker.keyboard' => array ( 0 => 'clkk', ), 'application/vnd.crick.clicker.palette' => array ( 0 => 'clkp', ), 'application/vnd.crick.clicker.template' => array ( 0 => 'clkt', ), 'application/vnd.crick.clicker.wordbank' => array ( 0 => 'clkw', ), 'application/vnd.criticaltools.wbs+xml' => array ( 0 => 'wbs', ), 'application/vnd.ctc-posml' => array ( 0 => 'pml', ), 'application/vnd.cups-ppd' => array ( 0 => 'ppd', ), 'application/vnd.curl.car' => array ( 0 => 'car', ), 'application/vnd.curl.pcurl' => array ( 0 => 'pcurl', ), 'application/vnd.dart' => array ( 0 => 'dart', ), 'application/vnd.data-vision.rdz' => array ( 0 => 'rdz', ), 'application/vnd.dece.data' => array ( 0 => 'uvd', 1 => 'uvf', 2 => 'uvvd', 3 => 'uvvf', ), 'application/vnd.dece.ttml+xml' => array ( 0 => 'uvt', 1 => 'uvvt', ), 'application/vnd.dece.unspecified' => array ( 0 => 'uvvx', 1 => 'uvx', ), 'application/vnd.dece.zip' => array ( 0 => 'uvvz', 1 => 'uvz', ), 'application/vnd.denovo.fcselayout-link' => array ( 0 => 'fe_launch', ), 'application/vnd.dna' => array ( 0 => 'dna', ), 'application/vnd.dolby.mlp' => array ( 0 => 'mlp', ), 'application/vnd.dpgraph' => array ( 0 => 'dpg', ), 'application/vnd.dreamfactory' => array ( 0 => 'dfac', ), 'application/vnd.ds-keypoint' => array ( 0 => 'kpxx', ), 'application/vnd.dvb.ait' => array ( 0 => 'ait', ), 'application/vnd.dvb.service' => array ( 0 => 'svc', ), 'application/vnd.dynageo' => array ( 0 => 'geo', ), 'application/vnd.ecowin.chart' => array ( 0 => 'mag', ), 'application/vnd.enliven' => array ( 0 => 'nml', ), 'application/vnd.epson.esf' => array ( 0 => 'esf', ), 'application/vnd.epson.msf' => array ( 0 => 'msf', ), 'application/vnd.epson.quickanime' => array ( 0 => 'qam', ), 'application/vnd.epson.salt' => array ( 0 => 'slt', ), 'application/vnd.epson.ssf' => array ( 0 => 'ssf', ), 'application/vnd.eszigno3+xml' => array ( 0 => 'es3', 1 => 'et3', ), 'application/vnd.ezpix-album' => array ( 0 => 'ez2', ), 'application/vnd.ezpix-package' => array ( 0 => 'ez3', ), 'application/vnd.fdf' => array ( 0 => 'fdf', ), 'application/vnd.fdsn.mseed' => array ( 0 => 'mseed', ), 'application/vnd.fdsn.seed' => array ( 0 => 'dataless', 1 => 'seed', ), 'application/vnd.flographit' => array ( 0 => 'gph', ), 'application/vnd.fluxtime.clip' => array ( 0 => 'ftc', ), 'application/vnd.framemaker' => array ( 0 => 'book', 1 => 'fm', 2 => 'frame', 3 => 'maker', ), 'application/vnd.frogans.fnc' => array ( 0 => 'fnc', ), 'application/vnd.frogans.ltf' => array ( 0 => 'ltf', ), 'application/vnd.fsc.weblaunch' => array ( 0 => 'fsc', ), 'application/vnd.fujitsu.oasys' => array ( 0 => 'oas', ), 'application/vnd.fujitsu.oasys2' => array ( 0 => 'oa2', ), 'application/vnd.fujitsu.oasys3' => array ( 0 => 'oa3', ), 'application/vnd.fujitsu.oasysgp' => array ( 0 => 'fg5', ), 'application/vnd.fujitsu.oasysprs' => array ( 0 => 'bh2', ), 'application/vnd.fujixerox.ddd' => array ( 0 => 'ddd', ), 'application/vnd.fujixerox.docuworks' => array ( 0 => 'xdw', ), 'application/vnd.fujixerox.docuworks.binder' => array ( 0 => 'xbd', ), 'application/vnd.fuzzysheet' => array ( 0 => 'fzs', ), 'application/vnd.genomatix.tuxedo' => array ( 0 => 'txd', ), 'application/vnd.geogebra.file' => array ( 0 => 'ggb', ), 'application/vnd.geogebra.tool' => array ( 0 => 'ggt', ), 'application/vnd.geometry-explorer' => array ( 0 => 'gex', 1 => 'gre', ), 'application/vnd.geonext' => array ( 0 => 'gxt', ), 'application/vnd.geoplan' => array ( 0 => 'g2w', ), 'application/vnd.geospace' => array ( 0 => 'g3w', ), 'application/vnd.gmx' => array ( 0 => 'gmx', ), 'application/vnd.google-earth.kml+xml' => array ( 0 => 'kml', ), 'application/vnd.google-earth.kmz' => array ( 0 => 'kmz', ), 'application/vnd.grafeq' => array ( 0 => 'gqf', 1 => 'gqs', ), 'application/vnd.groove-account' => array ( 0 => 'gac', ), 'application/vnd.groove-help' => array ( 0 => 'ghf', ), 'application/vnd.groove-identity-message' => array ( 0 => 'gim', ), 'application/vnd.groove-injector' => array ( 0 => 'grv', ), 'application/vnd.groove-tool-message' => array ( 0 => 'gtm', ), 'application/vnd.groove-tool-template' => array ( 0 => 'tpl', ), 'application/vnd.groove-vcard' => array ( 0 => 'vcg', ), 'application/vnd.hal+xml' => array ( 0 => 'hal', ), 'application/vnd.handheld-entertainment+xml' => array ( 0 => 'zmm', ), 'application/vnd.hbci' => array ( 0 => 'hbci', ), 'application/vnd.hhe.lesson-player' => array ( 0 => 'les', ), 'application/vnd.hp-hpgl' => array ( 0 => 'hpgl', ), 'application/vnd.hp-hpid' => array ( 0 => 'hpid', ), 'application/vnd.hp-hps' => array ( 0 => 'hps', ), 'application/vnd.hp-jlyt' => array ( 0 => 'jlt', ), 'application/vnd.hp-pcl' => array ( 0 => 'pcl', ), 'application/vnd.hp-pclxl' => array ( 0 => 'pclxl', ), 'application/vnd.hydrostatix.sof-data' => array ( 0 => 'sfd-hdstx', ), 'application/vnd.ibm.minipay' => array ( 0 => 'mpy', ), 'application/vnd.ibm.modcap' => array ( 0 => 'afp', 1 => 'list3820', 2 => 'listafp', ), 'application/vnd.ibm.rights-management' => array ( 0 => 'irm', ), 'application/vnd.ibm.secure-container' => array ( 0 => 'sc', ), 'application/vnd.iccprofile' => array ( 0 => 'icc', 1 => 'icm', ), 'application/vnd.igloader' => array ( 0 => 'igl', ), 'application/vnd.immervision-ivp' => array ( 0 => 'ivp', ), 'application/vnd.immervision-ivu' => array ( 0 => 'ivu', ), 'application/vnd.insors.igm' => array ( 0 => 'igm', ), 'application/vnd.intercon.formnet' => array ( 0 => 'xpw', 1 => 'xpx', ), 'application/vnd.intergeo' => array ( 0 => 'i2g', ), 'application/vnd.intu.qbo' => array ( 0 => 'qbo', ), 'application/vnd.intu.qfx' => array ( 0 => 'qfx', ), 'application/vnd.ipunplugged.rcprofile' => array ( 0 => 'rcprofile', ), 'application/vnd.irepository.package+xml' => array ( 0 => 'irp', ), 'application/vnd.is-xpr' => array ( 0 => 'xpr', ), 'application/vnd.isac.fcs' => array ( 0 => 'fcs', ), 'application/vnd.jam' => array ( 0 => 'jam', ), 'application/vnd.jcp.javame.midlet-rms' => array ( 0 => 'rms', ), 'application/vnd.jisp' => array ( 0 => 'jisp', ), 'application/vnd.joost.joda-archive' => array ( 0 => 'joda', ), 'application/vnd.kahootz' => array ( 0 => 'ktr', 1 => 'ktz', ), 'application/vnd.kde.karbon' => array ( 0 => 'karbon', ), 'application/vnd.kde.kchart' => array ( 0 => 'chrt', ), 'application/vnd.kde.kformula' => array ( 0 => 'kfo', ), 'application/vnd.kde.kivio' => array ( 0 => 'flw', ), 'application/vnd.kde.kontour' => array ( 0 => 'kon', ), 'application/vnd.kde.kpresenter' => array ( 0 => 'kpr', 1 => 'kpt', ), 'application/vnd.kde.kspread' => array ( 0 => 'ksp', ), 'application/vnd.kde.kword' => array ( 0 => 'kwd', 1 => 'kwt', ), 'application/vnd.kenameaapp' => array ( 0 => 'htke', ), 'application/vnd.kidspiration' => array ( 0 => 'kia', ), 'application/vnd.kinar' => array ( 0 => 'kne', 1 => 'knp', ), 'application/vnd.koan' => array ( 0 => 'skd', 1 => 'skm', 2 => 'skp', 3 => 'skt', ), 'application/vnd.kodak-descriptor' => array ( 0 => 'sse', ), 'application/vnd.las.las+xml' => array ( 0 => 'lasxml', ), 'application/vnd.llamagraphics.life-balance.desktop' => array ( 0 => 'lbd', ), 'application/vnd.llamagraphics.life-balance.exchange+xml' => array ( 0 => 'lbe', ), 'application/vnd.lotus-1-2-3' => array ( 0 => '123', ), 'application/vnd.lotus-approach' => array ( 0 => 'apr', ), 'application/vnd.lotus-freelance' => array ( 0 => 'pre', ), 'application/vnd.lotus-notes' => array ( 0 => 'nsf', ), 'application/vnd.lotus-organizer' => array ( 0 => 'org', ), 'application/vnd.lotus-screencam' => array ( 0 => 'scm', ), 'application/vnd.lotus-wordpro' => array ( 0 => 'lwp', ), 'application/vnd.macports.portpkg' => array ( 0 => 'portpkg', ), 'application/vnd.mcd' => array ( 0 => 'mcd', ), 'application/vnd.medcalcdata' => array ( 0 => 'mc1', ), 'application/vnd.mediastation.cdkey' => array ( 0 => 'cdkey', ), 'application/vnd.mfer' => array ( 0 => 'mwf', ), 'application/vnd.mfmp' => array ( 0 => 'mfm', ), 'application/vnd.micrografx.flo' => array ( 0 => 'flo', ), 'application/vnd.micrografx.igx' => array ( 0 => 'igx', ), 'application/vnd.mif' => array ( 0 => 'mif', ), 'application/vnd.mobius.daf' => array ( 0 => 'daf', ), 'application/vnd.mobius.dis' => array ( 0 => 'dis', ), 'application/vnd.mobius.mbk' => array ( 0 => 'mbk', ), 'application/vnd.mobius.mqy' => array ( 0 => 'mqy', ), 'application/vnd.mobius.msl' => array ( 0 => 'msl', ), 'application/vnd.mobius.plc' => array ( 0 => 'plc', ), 'application/vnd.mobius.txf' => array ( 0 => 'txf', ), 'application/vnd.mophun.application' => array ( 0 => 'mpn', ), 'application/vnd.mophun.certificate' => array ( 0 => 'mpc', ), 'application/vnd.mozilla.xul+xml' => array ( 0 => 'xul', ), 'application/vnd.ms-artgalry' => array ( 0 => 'cil', ), 'application/vnd.ms-cab-compressed' => array ( 0 => 'cab', ), 'application/vnd.ms-excel' => array ( 0 => 'xla', 1 => 'xlc', 2 => 'xlm', 3 => 'xls', 4 => 'xlt', 5 => 'xlw', ), 'application/vnd.ms-excel.addin.macroenabled.12' => array ( 0 => 'xlam', ), 'application/vnd.ms-excel.sheet.binary.macroenabled.12' => array ( 0 => 'xlsb', ), 'application/vnd.ms-excel.sheet.macroenabled.12' => array ( 0 => 'xlsm', ), 'application/vnd.ms-excel.template.macroenabled.12' => array ( 0 => 'xltm', ), 'application/vnd.ms-fontobject' => array ( 0 => 'eot', ), 'application/vnd.ms-htmlhelp' => array ( 0 => 'chm', ), 'application/vnd.ms-ims' => array ( 0 => 'ims', ), 'application/vnd.ms-lrm' => array ( 0 => 'lrm', ), 'application/vnd.ms-officetheme' => array ( 0 => 'thmx', ), 'application/vnd.ms-pki.seccat' => array ( 0 => 'cat', ), 'application/vnd.ms-pki.stl' => array ( 0 => 'stl', ), 'application/vnd.ms-powerpoint' => array ( 0 => 'pot', 1 => 'pps', 2 => 'ppt', ), 'application/vnd.ms-powerpoint.addin.macroenabled.12' => array ( 0 => 'ppam', ), 'application/vnd.ms-powerpoint.presentation.macroenabled.12' => array ( 0 => 'pptm', ), 'application/vnd.ms-powerpoint.slide.macroenabled.12' => array ( 0 => 'sldm', ), 'application/vnd.ms-powerpoint.slideshow.macroenabled.12' => array ( 0 => 'ppsm', ), 'application/vnd.ms-powerpoint.template.macroenabled.12' => array ( 0 => 'potm', ), 'application/vnd.ms-project' => array ( 0 => 'mpp', 1 => 'mpt', ), 'application/vnd.ms-word.document.macroenabled.12' => array ( 0 => 'docm', ), 'application/vnd.ms-word.template.macroenabled.12' => array ( 0 => 'dotm', ), 'application/vnd.ms-works' => array ( 0 => 'wcm', 1 => 'wdb', 2 => 'wks', 3 => 'wps', ), 'application/vnd.ms-wpl' => array ( 0 => 'wpl', ), 'application/vnd.ms-xpsdocument' => array ( 0 => 'xps', ), 'application/vnd.mseq' => array ( 0 => 'mseq', ), 'application/vnd.musician' => array ( 0 => 'mus', ), 'application/vnd.muvee.style' => array ( 0 => 'msty', ), 'application/vnd.mynfc' => array ( 0 => 'taglet', ), 'application/vnd.neurolanguage.nlu' => array ( 0 => 'nlu', ), 'application/vnd.nitf' => array ( 0 => 'nitf', 1 => 'ntf', ), 'application/vnd.noblenet-directory' => array ( 0 => 'nnd', ), 'application/vnd.noblenet-sealer' => array ( 0 => 'nns', ), 'application/vnd.noblenet-web' => array ( 0 => 'nnw', ), 'application/vnd.nokia.n-gage.data' => array ( 0 => 'ngdat', ), 'application/vnd.nokia.n-gage.symbian.install' => array ( 0 => 'n-gage', ), 'application/vnd.nokia.radio-preset' => array ( 0 => 'rpst', ), 'application/vnd.nokia.radio-presets' => array ( 0 => 'rpss', ), 'application/vnd.novadigm.edm' => array ( 0 => 'edm', ), 'application/vnd.novadigm.edx' => array ( 0 => 'edx', ), 'application/vnd.novadigm.ext' => array ( 0 => 'ext', ), 'application/vnd.oasis.opendocument.chart' => array ( 0 => 'odc', ), 'application/vnd.oasis.opendocument.chart-template' => array ( 0 => 'otc', ), 'application/vnd.oasis.opendocument.database' => array ( 0 => 'odb', ), 'application/vnd.oasis.opendocument.formula' => array ( 0 => 'odf', ), 'application/vnd.oasis.opendocument.formula-template' => array ( 0 => 'odft', ), 'application/vnd.oasis.opendocument.graphics' => array ( 0 => 'odg', ), 'application/vnd.oasis.opendocument.graphics-template' => array ( 0 => 'otg', ), 'application/vnd.oasis.opendocument.image' => array ( 0 => 'odi', ), 'application/vnd.oasis.opendocument.image-template' => array ( 0 => 'oti', ), 'application/vnd.oasis.opendocument.presentation' => array ( 0 => 'odp', ), 'application/vnd.oasis.opendocument.presentation-template' => array ( 0 => 'otp', ), 'application/vnd.oasis.opendocument.spreadsheet' => array ( 0 => 'ods', ), 'application/vnd.oasis.opendocument.spreadsheet-template' => array ( 0 => 'ots', ), 'application/vnd.oasis.opendocument.text' => array ( 0 => 'odt', ), 'application/vnd.oasis.opendocument.text-master' => array ( 0 => 'odm', ), 'application/vnd.oasis.opendocument.text-template' => array ( 0 => 'ott', ), 'application/vnd.oasis.opendocument.text-web' => array ( 0 => 'oth', ), 'application/vnd.olpc-sugar' => array ( 0 => 'xo', ), 'application/vnd.oma.dd2+xml' => array ( 0 => 'dd2', ), 'application/vnd.openofficeorg.extension' => array ( 0 => 'oxt', ), 'application/vnd.openxmlformats-officedocument.presentationml.presentation' => array ( 0 => 'pptx', ), 'application/vnd.openxmlformats-officedocument.presentationml.slide' => array ( 0 => 'sldx', ), 'application/vnd.openxmlformats-officedocument.presentationml.slideshow' => array ( 0 => 'ppsx', ), 'application/vnd.openxmlformats-officedocument.presentationml.template' => array ( 0 => 'potx', ), 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => array ( 0 => 'xlsx', ), 'application/vnd.openxmlformats-officedocument.spreadsheetml.template' => array ( 0 => 'xltx', ), 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => array ( 0 => 'docx', ), 'application/vnd.openxmlformats-officedocument.wordprocessingml.template' => array ( 0 => 'dotx', ), 'application/vnd.osgeo.mapguide.package' => array ( 0 => 'mgp', ), 'application/vnd.osgi.dp' => array ( 0 => 'dp', ), 'application/vnd.osgi.subsystem' => array ( 0 => 'esa', ), 'application/vnd.palm' => array ( 0 => 'oprc', 1 => 'pdb', 2 => 'pqa', ), 'application/vnd.pawaafile' => array ( 0 => 'paw', ), 'application/vnd.pg.format' => array ( 0 => 'str', ), 'application/vnd.pg.osasli' => array ( 0 => 'ei6', ), 'application/vnd.picsel' => array ( 0 => 'efif', ), 'application/vnd.pmi.widget' => array ( 0 => 'wg', ), 'application/vnd.pocketlearn' => array ( 0 => 'plf', ), 'application/vnd.powerbuilder6' => array ( 0 => 'pbd', ), 'application/vnd.previewsystems.box' => array ( 0 => 'box', ), 'application/vnd.proteus.magazine' => array ( 0 => 'mgz', ), 'application/vnd.publishare-delta-tree' => array ( 0 => 'qps', ), 'application/vnd.pvi.ptid1' => array ( 0 => 'ptid', ), 'application/vnd.quark.quarkxpress' => array ( 0 => 'qwd', 1 => 'qwt', 2 => 'qxb', 3 => 'qxd', 4 => 'qxl', 5 => 'qxt', ), 'application/vnd.realvnc.bed' => array ( 0 => 'bed', ), 'application/vnd.recordare.musicxml' => array ( 0 => 'mxl', ), 'application/vnd.recordare.musicxml+xml' => array ( 0 => 'musicxml', ), 'application/vnd.rig.cryptonote' => array ( 0 => 'cryptonote', ), 'application/vnd.rim.cod' => array ( 0 => 'cod', ), 'application/vnd.rn-realmedia' => array ( 0 => 'rm', ), 'application/vnd.rn-realmedia-vbr' => array ( 0 => 'rmvb', ), 'application/vnd.route66.link66+xml' => array ( 0 => 'link66', ), 'application/vnd.sailingtracker.track' => array ( 0 => 'st', ), 'application/vnd.seemail' => array ( 0 => 'see', ), 'application/vnd.sema' => array ( 0 => 'sema', ), 'application/vnd.semd' => array ( 0 => 'semd', ), 'application/vnd.semf' => array ( 0 => 'semf', ), 'application/vnd.shana.informed.formdata' => array ( 0 => 'ifm', ), 'application/vnd.shana.informed.formtemplate' => array ( 0 => 'itp', ), 'application/vnd.shana.informed.interchange' => array ( 0 => 'iif', ), 'application/vnd.shana.informed.package' => array ( 0 => 'ipk', ), 'application/vnd.simtech-mindmapper' => array ( 0 => 'twd', 1 => 'twds', ), 'application/vnd.smaf' => array ( 0 => 'mmf', ), 'application/vnd.smart.teacher' => array ( 0 => 'teacher', ), 'application/vnd.solent.sdkm+xml' => array ( 0 => 'sdkd', 1 => 'sdkm', ), 'application/vnd.spotfire.dxp' => array ( 0 => 'dxp', ), 'application/vnd.spotfire.sfs' => array ( 0 => 'sfs', ), 'application/vnd.stardivision.calc' => array ( 0 => 'sdc', ), 'application/vnd.stardivision.draw' => array ( 0 => 'sda', ), 'application/vnd.stardivision.impress' => array ( 0 => 'sdd', ), 'application/vnd.stardivision.math' => array ( 0 => 'smf', ), 'application/vnd.stardivision.writer' => array ( 0 => 'sdw', 1 => 'vor', ), 'application/vnd.stardivision.writer-global' => array ( 0 => 'sgl', ), 'application/vnd.stepmania.package' => array ( 0 => 'smzip', ), 'application/vnd.stepmania.stepchart' => array ( 0 => 'sm', ), 'application/vnd.sun.xml.calc' => array ( 0 => 'sxc', ), 'application/vnd.sun.xml.calc.template' => array ( 0 => 'stc', ), 'application/vnd.sun.xml.draw' => array ( 0 => 'sxd', ), 'application/vnd.sun.xml.draw.template' => array ( 0 => 'std', ), 'application/vnd.sun.xml.impress' => array ( 0 => 'sxi', ), 'application/vnd.sun.xml.impress.template' => array ( 0 => 'sti', ), 'application/vnd.sun.xml.math' => array ( 0 => 'sxm', ), 'application/vnd.sun.xml.writer' => array ( 0 => 'sxw', ), 'application/vnd.sun.xml.writer.global' => array ( 0 => 'sxg', ), 'application/vnd.sun.xml.writer.template' => array ( 0 => 'stw', ), 'application/vnd.sus-calendar' => array ( 0 => 'sus', 1 => 'susp', ), 'application/vnd.svd' => array ( 0 => 'svd', ), 'application/vnd.symbian.install' => array ( 0 => 'sis', 1 => 'sisx', ), 'application/vnd.syncml+xml' => array ( 0 => 'xsm', ), 'application/vnd.syncml.dm+wbxml' => array ( 0 => 'bdm', ), 'application/vnd.syncml.dm+xml' => array ( 0 => 'xdm', ), 'application/vnd.tao.intent-module-archive' => array ( 0 => 'tao', ), 'application/vnd.tcpdump.pcap' => array ( 0 => 'cap', 1 => 'dmp', 2 => 'pcap', ), 'application/vnd.tmobile-livetv' => array ( 0 => 'tmo', ), 'application/vnd.trid.tpt' => array ( 0 => 'tpt', ), 'application/vnd.triscape.mxs' => array ( 0 => 'mxs', ), 'application/vnd.trueapp' => array ( 0 => 'tra', ), 'application/vnd.ufdl' => array ( 0 => 'ufd', 1 => 'ufdl', ), 'application/vnd.uiq.theme' => array ( 0 => 'utz', ), 'application/vnd.umajin' => array ( 0 => 'umj', ), 'application/vnd.unity' => array ( 0 => 'unityweb', ), 'application/vnd.uoml+xml' => array ( 0 => 'uoml', ), 'application/vnd.vcx' => array ( 0 => 'vcx', ), 'application/vnd.visio' => array ( 0 => 'vsd', 1 => 'vss', 2 => 'vst', 3 => 'vsw', ), 'application/vnd.visionary' => array ( 0 => 'vis', ), 'application/vnd.vsf' => array ( 0 => 'vsf', ), 'application/vnd.wap.wbxml' => array ( 0 => 'wbxml', ), 'application/vnd.wap.wmlc' => array ( 0 => 'wmlc', ), 'application/vnd.wap.wmlscriptc' => array ( 0 => 'wmlsc', ), 'application/vnd.webturbo' => array ( 0 => 'wtb', ), 'application/vnd.wolfram.player' => array ( 0 => 'nbp', ), 'application/vnd.wordperfect' => array ( 0 => 'wpd', ), 'application/vnd.wqd' => array ( 0 => 'wqd', ), 'application/vnd.wt.stf' => array ( 0 => 'stf', ), 'application/vnd.xara' => array ( 0 => 'xar', ), 'application/vnd.xfdl' => array ( 0 => 'xfdl', ), 'application/vnd.yamaha.hv-dic' => array ( 0 => 'hvd', ), 'application/vnd.yamaha.hv-script' => array ( 0 => 'hvs', ), 'application/vnd.yamaha.hv-voice' => array ( 0 => 'hvp', ), 'application/vnd.yamaha.openscoreformat' => array ( 0 => 'osf', ), 'application/vnd.yamaha.openscoreformat.osfpvg+xml' => array ( 0 => 'osfpvg', ), 'application/vnd.yamaha.smaf-audio' => array ( 0 => 'saf', ), 'application/vnd.yamaha.smaf-phrase' => array ( 0 => 'spf', ), 'application/vnd.yellowriver-custom-menu' => array ( 0 => 'cmp', ), 'application/vnd.zul' => array ( 0 => 'zir', 1 => 'zirz', ), 'application/vnd.zzazz.deck+xml' => array ( 0 => 'zaz', ), 'application/voicexml+xml' => array ( 0 => 'vxml', ), 'application/widget' => array ( 0 => 'wgt', ), 'application/winhlp' => array ( 0 => 'hlp', ), 'application/wsdl+xml' => array ( 0 => 'wsdl', ), 'application/wspolicy+xml' => array ( 0 => 'wspolicy', ), 'application/x-7z-compressed' => array ( 0 => '7z', ), 'application/x-abiword' => array ( 0 => 'abw', ), 'application/x-ace-compressed' => array ( 0 => 'ace', ), 'application/x-apple-diskimage' => array ( 0 => 'dmg', ), 'application/x-authorware-bin' => array ( 0 => 'aab', 1 => 'u32', 2 => 'vox', 3 => 'x32', ), 'application/x-authorware-map' => array ( 0 => 'aam', ), 'application/x-authorware-seg' => array ( 0 => 'aas', ), 'application/x-bcpio' => array ( 0 => 'bcpio', ), 'application/x-bittorrent' => array ( 0 => 'torrent', ), 'application/x-blorb' => array ( 0 => 'blb', 1 => 'blorb', ), 'application/x-bzip' => array ( 0 => 'bz', ), 'application/x-bzip2' => array ( 0 => 'boz', 1 => 'bz2', ), 'application/x-cbr' => array ( 0 => 'cb7', 1 => 'cba', 2 => 'cbr', 3 => 'cbt', 4 => 'cbz', ), 'application/x-cdlink' => array ( 0 => 'vcd', ), 'application/x-cfs-compressed' => array ( 0 => 'cfs', ), 'application/x-chat' => array ( 0 => 'chat', ), 'application/x-chess-pgn' => array ( 0 => 'pgn', ), 'application/x-conference' => array ( 0 => 'nsc', ), 'application/x-cpio' => array ( 0 => 'cpio', ), 'application/x-csh' => array ( 0 => 'csh', ), 'application/x-debian-package' => array ( 0 => 'deb', 1 => 'udeb', ), 'application/x-dgc-compressed' => array ( 0 => 'dgc', ), 'application/x-director' => array ( 0 => 'cct', 1 => 'cst', 2 => 'cxt', 3 => 'dcr', 4 => 'dir', 5 => 'dxr', 6 => 'fgd', 7 => 'swa', 8 => 'w3d', ), 'application/x-doom' => array ( 0 => 'wad', ), 'application/x-dtbncx+xml' => array ( 0 => 'ncx', ), 'application/x-dtbook+xml' => array ( 0 => 'dtb', ), 'application/x-dtbresource+xml' => array ( 0 => 'res', ), 'application/x-dvi' => array ( 0 => 'dvi', ), 'application/x-envoy' => array ( 0 => 'evy', ), 'application/x-eva' => array ( 0 => 'eva', ), 'application/x-font-bdf' => array ( 0 => 'bdf', ), 'application/x-font-ghostscript' => array ( 0 => 'gsf', ), 'application/x-font-linux-psf' => array ( 0 => 'psf', ), 'application/x-font-pcf' => array ( 0 => 'pcf', ), 'application/x-font-snf' => array ( 0 => 'snf', ), 'application/x-font-type1' => array ( 0 => 'afm', 1 => 'pfa', 2 => 'pfb', 3 => 'pfm', ), 'application/x-freearc' => array ( 0 => 'arc', ), 'application/x-futuresplash' => array ( 0 => 'spl', ), 'application/x-gca-compressed' => array ( 0 => 'gca', ), 'application/x-glulx' => array ( 0 => 'ulx', ), 'application/x-gnumeric' => array ( 0 => 'gnumeric', ), 'application/x-gramps-xml' => array ( 0 => 'gramps', ), 'application/x-gtar' => array ( 0 => 'gtar', ), 'application/x-hdf' => array ( 0 => 'hdf', ), 'application/x-install-instructions' => array ( 0 => 'install', ), 'application/x-iso9660-image' => array ( 0 => 'iso', ), 'application/x-java-jnlp-file' => array ( 0 => 'jnlp', ), 'application/x-latex' => array ( 0 => 'latex', ), 'application/x-lzh-compressed' => array ( 0 => 'lha', 1 => 'lzh', ), 'application/x-mie' => array ( 0 => 'mie', ), 'application/x-mobipocket-ebook' => array ( 0 => 'mobi', 1 => 'prc', ), 'application/x-ms-application' => array ( 0 => 'application', ), 'application/x-ms-shortcut' => array ( 0 => 'lnk', ), 'application/x-ms-wmd' => array ( 0 => 'wmd', ), 'application/x-ms-wmz' => array ( 0 => 'wmz', ), 'application/x-ms-xbap' => array ( 0 => 'xbap', ), 'application/x-msaccess' => array ( 0 => 'mdb', ), 'application/x-msbinder' => array ( 0 => 'obd', ), 'application/x-mscardfile' => array ( 0 => 'crd', ), 'application/x-msclip' => array ( 0 => 'clp', ), 'application/x-msdownload' => array ( 0 => 'bat', 1 => 'com', 2 => 'dll', 3 => 'exe', 4 => 'msi', ), 'application/x-msmediaview' => array ( 0 => 'm13', 1 => 'm14', 2 => 'mvb', ), 'application/x-msmetafile' => array ( 0 => 'emf', 1 => 'emz', 2 => 'wmf', 3 => 'wmz', ), 'application/x-msmoney' => array ( 0 => 'mny', ), 'application/x-mspublisher' => array ( 0 => 'pub', ), 'application/x-msschedule' => array ( 0 => 'scd', ), 'application/x-msterminal' => array ( 0 => 'trm', ), 'application/x-mswrite' => array ( 0 => 'wri', ), 'application/x-netcdf' => array ( 0 => 'cdf', 1 => 'nc', ), 'application/x-nzb' => array ( 0 => 'nzb', ), 'application/x-pkcs12' => array ( 0 => 'p12', 1 => 'pfx', ), 'application/x-pkcs7-certificates' => array ( 0 => 'p7b', 1 => 'spc', ), 'application/x-pkcs7-certreqresp' => array ( 0 => 'p7r', ), 'application/x-rar-compressed' => array ( 0 => 'rar', ), 'application/x-research-info-systems' => array ( 0 => 'ris', ), 'application/x-sh' => array ( 0 => 'sh', ), 'application/x-shar' => array ( 0 => 'shar', ), 'application/x-shockwave-flash' => array ( 0 => 'swf', ), 'application/x-silverlight-app' => array ( 0 => 'xap', ), 'application/x-sql' => array ( 0 => 'sql', ), 'application/x-stuffit' => array ( 0 => 'sit', ), 'application/x-stuffitx' => array ( 0 => 'sitx', ), 'application/x-subrip' => array ( 0 => 'srt', ), 'application/x-sv4cpio' => array ( 0 => 'sv4cpio', ), 'application/x-sv4crc' => array ( 0 => 'sv4crc', ), 'application/x-t3vm-image' => array ( 0 => 't3', ), 'application/x-tads' => array ( 0 => 'gam', ), 'application/x-tar' => array ( 0 => 'tar', ), 'application/x-tcl' => array ( 0 => 'tcl', ), 'application/x-tex' => array ( 0 => 'tex', ), 'application/x-tex-tfm' => array ( 0 => 'tfm', ), 'application/x-texinfo' => array ( 0 => 'texi', 1 => 'texinfo', ), 'application/x-tgif' => array ( 0 => 'obj', ), 'application/x-ustar' => array ( 0 => 'ustar', ), 'application/x-wais-source' => array ( 0 => 'src', ), 'application/x-x509-ca-cert' => array ( 0 => 'crt', 1 => 'der', ), 'application/x-xfig' => array ( 0 => 'fig', ), 'application/x-xliff+xml' => array ( 0 => 'xlf', ), 'application/x-xpinstall' => array ( 0 => 'xpi', ), 'application/x-xz' => array ( 0 => 'xz', ), 'application/x-zmachine' => array ( 0 => 'z1', 1 => 'z2', 2 => 'z3', 3 => 'z4', 4 => 'z5', 5 => 'z6', 6 => 'z7', 7 => 'z8', ), 'application/xaml+xml' => array ( 0 => 'xaml', ), 'application/xcap-diff+xml' => array ( 0 => 'xdf', ), 'application/xenc+xml' => array ( 0 => 'xenc', ), 'application/xhtml+xml' => array ( 0 => 'xht', 1 => 'xhtml', ), 'application/xml' => array ( 0 => 'xml', 1 => 'xsl', ), 'application/xml-dtd' => array ( 0 => 'dtd', ), 'application/xop+xml' => array ( 0 => 'xop', ), 'application/xproc+xml' => array ( 0 => 'xpl', ), 'application/xslt+xml' => array ( 0 => 'xslt', ), 'application/xspf+xml' => array ( 0 => 'xspf', ), 'application/xv+xml' => array ( 0 => 'mxml', 1 => 'xhvml', 2 => 'xvm', 3 => 'xvml', ), 'application/yang' => array ( 0 => 'yang', ), 'application/yin+xml' => array ( 0 => 'yin', ), 'application/zip' => array ( 0 => 'zip', ), 'audio/adpcm' => array ( 0 => 'adp', ), 'audio/basic' => array ( 0 => 'au', 1 => 'snd', ), 'audio/midi' => array ( 0 => 'kar', 1 => 'mid', 2 => 'midi', 3 => 'rmi', ), 'audio/mp4' => array ( 0 => 'm4a', 1 => 'mp4a', ), 'audio/mpeg' => array ( 0 => 'm2a', 1 => 'm3a', 2 => 'mp2', 3 => 'mp2a', 4 => 'mp3', 5 => 'mpga', ), 'audio/ogg' => array ( 0 => 'oga', 1 => 'ogg', 2 => 'spx', ), 'audio/s3m' => array ( 0 => 's3m', ), 'audio/silk' => array ( 0 => 'sil', ), 'audio/vnd.dece.audio' => array ( 0 => 'uva', 1 => 'uvva', ), 'audio/vnd.digital-winds' => array ( 0 => 'eol', ), 'audio/vnd.dra' => array ( 0 => 'dra', ), 'audio/vnd.dts' => array ( 0 => 'dts', ), 'audio/vnd.dts.hd' => array ( 0 => 'dtshd', ), 'audio/vnd.lucent.voice' => array ( 0 => 'lvp', ), 'audio/vnd.ms-playready.media.pya' => array ( 0 => 'pya', ), 'audio/vnd.nuera.ecelp4800' => array ( 0 => 'ecelp4800', ), 'audio/vnd.nuera.ecelp7470' => array ( 0 => 'ecelp7470', ), 'audio/vnd.nuera.ecelp9600' => array ( 0 => 'ecelp9600', ), 'audio/vnd.rip' => array ( 0 => 'rip', ), 'audio/webm' => array ( 0 => 'weba', ), 'audio/x-aac' => array ( 0 => 'aac', ), 'audio/x-aiff' => array ( 0 => 'aif', 1 => 'aifc', 2 => 'aiff', ), 'audio/x-caf' => array ( 0 => 'caf', ), 'audio/x-flac' => array ( 0 => 'flac', ), 'audio/x-matroska' => array ( 0 => 'mka', ), 'audio/x-mpegurl' => array ( 0 => 'm3u', ), 'audio/x-ms-wax' => array ( 0 => 'wax', ), 'audio/x-ms-wma' => array ( 0 => 'wma', ), 'audio/x-pn-realaudio' => array ( 0 => 'ra', 1 => 'ram', ), 'audio/x-pn-realaudio-plugin' => array ( 0 => 'rmp', ), 'audio/x-wav' => array ( 0 => 'wav', ), 'audio/xm' => array ( 0 => 'xm', ), 'chemical/x-cdx' => array ( 0 => 'cdx', ), 'chemical/x-cif' => array ( 0 => 'cif', ), 'chemical/x-cmdf' => array ( 0 => 'cmdf', ), 'chemical/x-cml' => array ( 0 => 'cml', ), 'chemical/x-csml' => array ( 0 => 'csml', ), 'chemical/x-xyz' => array ( 0 => 'xyz', ), 'font/collection' => array ( 0 => 'ttc', ), 'font/otf' => array ( 0 => 'otf', ), 'font/ttf' => array ( 0 => 'ttf', ), 'font/woff' => array ( 0 => 'woff', ), 'font/woff2' => array ( 0 => 'woff2', ), 'image/bmp' => array ( 0 => 'bmp', ), 'image/cgm' => array ( 0 => 'cgm', ), 'image/g3fax' => array ( 0 => 'g3', ), 'image/gif' => array ( 0 => 'gif', ), 'image/ief' => array ( 0 => 'ief', ), 'image/jpeg' => array ( 0 => 'jpe', 1 => 'jpeg', 2 => 'jpg', ), 'image/ktx' => array ( 0 => 'ktx', ), 'image/png' => array ( 0 => 'png', ), 'image/prs.btif' => array ( 0 => 'btif', ), 'image/sgi' => array ( 0 => 'sgi', ), 'image/svg+xml' => array ( 0 => 'svg', 1 => 'svgz', ), 'image/tiff' => array ( 0 => 'tif', 1 => 'tiff', ), 'image/vnd.adobe.photoshop' => array ( 0 => 'psd', ), 'image/vnd.dece.graphic' => array ( 0 => 'uvg', 1 => 'uvi', 2 => 'uvvg', 3 => 'uvvi', ), 'image/vnd.djvu' => array ( 0 => 'djv', 1 => 'djvu', ), 'image/vnd.dvb.subtitle' => array ( 0 => 'sub', ), 'image/vnd.dwg' => array ( 0 => 'dwg', ), 'image/vnd.dxf' => array ( 0 => 'dxf', ), 'image/vnd.fastbidsheet' => array ( 0 => 'fbs', ), 'image/vnd.fpx' => array ( 0 => 'fpx', ), 'image/vnd.fst' => array ( 0 => 'fst', ), 'image/vnd.fujixerox.edmics-mmr' => array ( 0 => 'mmr', ), 'image/vnd.fujixerox.edmics-rlc' => array ( 0 => 'rlc', ), 'image/vnd.ms-modi' => array ( 0 => 'mdi', ), 'image/vnd.ms-photo' => array ( 0 => 'wdp', ), 'image/vnd.net-fpx' => array ( 0 => 'npx', ), 'image/vnd.wap.wbmp' => array ( 0 => 'wbmp', ), 'image/vnd.xiff' => array ( 0 => 'xif', ), 'image/webp' => array ( 0 => 'webp', ), 'image/x-3ds' => array ( 0 => '3ds', ), 'image/x-cmu-raster' => array ( 0 => 'ras', ), 'image/x-cmx' => array ( 0 => 'cmx', ), 'image/x-freehand' => array ( 0 => 'fh', 1 => 'fh4', 2 => 'fh5', 3 => 'fh7', 4 => 'fhc', ), 'image/x-icon' => array ( 0 => 'ico', ), 'image/x-mrsid-image' => array ( 0 => 'sid', ), 'image/x-pcx' => array ( 0 => 'pcx', ), 'image/x-pict' => array ( 0 => 'pct', 1 => 'pic', ), 'image/x-portable-anymap' => array ( 0 => 'pnm', ), 'image/x-portable-bitmap' => array ( 0 => 'pbm', ), 'image/x-portable-graymap' => array ( 0 => 'pgm', ), 'image/x-portable-pixmap' => array ( 0 => 'ppm', ), 'image/x-rgb' => array ( 0 => 'rgb', ), 'image/x-tga' => array ( 0 => 'tga', ), 'image/x-xbitmap' => array ( 0 => 'xbm', ), 'image/x-xpixmap' => array ( 0 => 'xpm', ), 'image/x-xwindowdump' => array ( 0 => 'xwd', ), 'message/rfc822' => array ( 0 => 'eml', 1 => 'mime', ), 'model/iges' => array ( 0 => 'iges', 1 => 'igs', ), 'model/mesh' => array ( 0 => 'mesh', 1 => 'msh', 2 => 'silo', ), 'model/vnd.collada+xml' => array ( 0 => 'dae', ), 'model/vnd.dwf' => array ( 0 => 'dwf', ), 'model/vnd.gdl' => array ( 0 => 'gdl', ), 'model/vnd.gtw' => array ( 0 => 'gtw', ), 'model/vnd.mts' => array ( 0 => 'mts', ), 'model/vnd.vtu' => array ( 0 => 'vtu', ), 'model/vrml' => array ( 0 => 'vrml', 1 => 'wrl', ), 'model/x3d+binary' => array ( 0 => 'x3db', 1 => 'x3dbz', ), 'model/x3d+vrml' => array ( 0 => 'x3dv', 1 => 'x3dvz', ), 'model/x3d+xml' => array ( 0 => 'x3d', 1 => 'x3dz', ), 'text/cache-manifest' => array ( 0 => 'appcache', ), 'text/calendar' => array ( 0 => 'ics', 1 => 'ifb', ), 'text/css' => array ( 0 => 'css', ), 'text/csv' => array ( 0 => 'csv', ), 'text/html' => array ( 0 => 'htm', 1 => 'html', ), 'text/n3' => array ( 0 => 'n3', ), 'text/plain' => array ( 0 => 'conf', 1 => 'def', 2 => 'in', 3 => 'list', 4 => 'log', 5 => 'text', 6 => 'txt', ), 'text/prs.lines.tag' => array ( 0 => 'dsc', ), 'text/richtext' => array ( 0 => 'rtx', ), 'text/sgml' => array ( 0 => 'sgm', 1 => 'sgml', ), 'text/tab-separated-values' => array ( 0 => 'tsv', ), 'text/troff' => array ( 0 => 'man', 1 => 'me', 2 => 'ms', 3 => 'roff', 4 => 't', 5 => 'tr', ), 'text/turtle' => array ( 0 => 'ttl', ), 'text/uri-list' => array ( 0 => 'uri', 1 => 'uris', 2 => 'urls', ), 'text/vcard' => array ( 0 => 'vcard', ), 'text/vnd.curl' => array ( 0 => 'curl', ), 'text/vnd.curl.dcurl' => array ( 0 => 'dcurl', ), 'text/vnd.curl.mcurl' => array ( 0 => 'mcurl', ), 'text/vnd.curl.scurl' => array ( 0 => 'scurl', ), 'text/vnd.dvb.subtitle' => array ( 0 => 'sub', ), 'text/vnd.fly' => array ( 0 => 'fly', ), 'text/vnd.fmi.flexstor' => array ( 0 => 'flx', ), 'text/vnd.graphviz' => array ( 0 => 'gv', ), 'text/vnd.in3d.3dml' => array ( 0 => '3dml', ), 'text/vnd.in3d.spot' => array ( 0 => 'spot', ), 'text/vnd.sun.j2me.app-descriptor' => array ( 0 => 'jad', ), 'text/vnd.wap.wml' => array ( 0 => 'wml', ), 'text/vnd.wap.wmlscript' => array ( 0 => 'wmls', ), 'text/x-asm' => array ( 0 => 'asm', 1 => 's', ), 'text/x-c' => array ( 0 => 'c', 1 => 'cc', 2 => 'cpp', 3 => 'cxx', 4 => 'dic', 5 => 'h', 6 => 'hh', ), 'text/x-fortran' => array ( 0 => 'f', 1 => 'f77', 2 => 'f90', 3 => 'for', ), 'text/x-java-source' => array ( 0 => 'java', ), 'text/x-nfo' => array ( 0 => 'nfo', ), 'text/x-opml' => array ( 0 => 'opml', ), 'text/x-pascal' => array ( 0 => 'p', 1 => 'pas', ), 'text/x-setext' => array ( 0 => 'etx', ), 'text/x-sfv' => array ( 0 => 'sfv', ), 'text/x-uuencode' => array ( 0 => 'uu', ), 'text/x-vcalendar' => array ( 0 => 'vcs', ), 'text/x-vcard' => array ( 0 => 'vcf', ), 'video/3gpp' => array ( 0 => '3gp', ), 'video/3gpp2' => array ( 0 => '3g2', ), 'video/h261' => array ( 0 => 'h261', ), 'video/h263' => array ( 0 => 'h263', ), 'video/h264' => array ( 0 => 'h264', ), 'video/jpeg' => array ( 0 => 'jpgv', ), 'video/jpm' => array ( 0 => 'jpgm', 1 => 'jpm', ), 'video/mj2' => array ( 0 => 'mj2', 1 => 'mjp2', ), 'video/mp4' => array ( 0 => 'mp4', 1 => 'mp4v', 2 => 'mpg4', ), 'video/mpeg' => array ( 0 => 'm1v', 1 => 'm2v', 2 => 'mpe', 3 => 'mpeg', 4 => 'mpg', ), 'video/ogg' => array ( 0 => 'ogv', ), 'video/quicktime' => array ( 0 => 'mov', 1 => 'qt', ), 'video/vnd.dece.hd' => array ( 0 => 'uvh', 1 => 'uvvh', ), 'video/vnd.dece.mobile' => array ( 0 => 'uvm', 1 => 'uvvm', ), 'video/vnd.dece.pd' => array ( 0 => 'uvp', 1 => 'uvvp', ), 'video/vnd.dece.sd' => array ( 0 => 'uvs', 1 => 'uvvs', ), 'video/vnd.dece.video' => array ( 0 => 'uvv', 1 => 'uvvv', ), 'video/vnd.dvb.file' => array ( 0 => 'dvb', ), 'video/vnd.fvt' => array ( 0 => 'fvt', ), 'video/vnd.mpegurl' => array ( 0 => 'm4u', 1 => 'mxu', ), 'video/vnd.ms-playready.media.pyv' => array ( 0 => 'pyv', ), 'video/vnd.uvvu.mp4' => array ( 0 => 'uvu', 1 => 'uvvu', ), 'video/vnd.vivo' => array ( 0 => 'viv', ), 'video/webm' => array ( 0 => 'webm', ), 'video/x-f4v' => array ( 0 => 'f4v', ), 'video/x-fli' => array ( 0 => 'fli', ), 'video/x-flv' => array ( 0 => 'flv', ), 'video/x-m4v' => array ( 0 => 'm4v', ), 'video/x-matroska' => array ( 0 => 'mk3d', 1 => 'mks', 2 => 'mkv', ), 'video/x-mng' => array ( 0 => 'mng', ), 'video/x-ms-asf' => array ( 0 => 'asf', 1 => 'asx', ), 'video/x-ms-vob' => array ( 0 => 'vob', ), 'video/x-ms-wm' => array ( 0 => 'wm', ), 'video/x-ms-wmv' => array ( 0 => 'wmv', ), 'video/x-ms-wmx' => array ( 0 => 'wmx', ), 'video/x-ms-wvx' => array ( 0 => 'wvx', ), 'video/x-msvideo' => array ( 0 => 'avi', ), 'video/x-sgi-movie' => array ( 0 => 'movie', ), 'video/x-smv' => array ( 0 => 'smv', ), 'x-conference/x-cooltalk' => array ( 0 => 'ice', ), )

Methods #

__construct()
UploadedFile constructor.
getClientExtension()
Gets the file extension based on the filename sent from the client.
getClientType()
Gets the file MIME content-type sent from the client.
getDestination()
The destination filename to which the uploaded file was moved.
getError()
Gets the error code associated with this file upload.
getErrorMessage()
Gets the error message based on the file upload error code.
getExtension()
Gets a file extension based on the MIME content-type.
getFullPath()
Gets the full path as submitted by the browser.
getName()
Gets the uploaded file name sent in the request.
getSize()
Gets the size, in bytes, of the uploaded file.
getTmpName()
Gets the temporary filename of the file in which the uploaded file was stored on the server.
getType()
Gets the MIME content-type from the uploaded file stored on the server.
isMoved()
Tells if the uploaded file has been moved to a new destination.
isValid()
Tells if the file upload has no errors and is stored in the temporary directory.
move()
Moves the uploaded file to a new destination.
setErrorMessage()
-

__construct()

public function __construct(array $file)

UploadedFile constructor.

Parameters
  • array $file - a $_FILE item

getClientExtension()

public function getClientExtension(): string

Gets the file extension based on the filename sent from the client.

WARNING! This info is not secure. Use the getExtension method.

Returns string

getClientType()

public function getClientType(): string

Gets the file MIME content-type sent from the client.

WARNING! This info is not secure. Use the getType method.

Returns string

getDestination()

public function getDestination(): ?string

The destination filename to which the uploaded file was moved.

Returns ?string

getError()

public function getError(): int

Gets the error code associated with this file upload.

Returns int

getErrorMessage()

public function getErrorMessage(): string

Gets the error message based on the file upload error code.

WARNING! This message should not be showed to the final user.
Use Validation errors instead.

Returns string

getExtension()

public function getExtension(): string

Gets a file extension based on the MIME content-type.

Returns string

getFullPath()

public function getFullPath(): string

Gets the full path as submitted by the browser.

WARNING! This value does not always contain a real directory structure,
and cannot be trusted.

Returns string

getName()

public function getName(): string

Gets the uploaded file name sent in the request.

Returns string

getSize()

public function getSize(): int

Gets the size, in bytes, of the uploaded file.

Returns int

getTmpName()

public function getTmpName(): string

Gets the temporary filename of the file in which the uploaded file was stored on the server.

Returns string

getType()

public function getType(): string

Gets the MIME content-type from the uploaded file stored on the server.

Returns string

isMoved()

public function isMoved(): bool

Tells if the uploaded file has been moved to a new destination.

Returns bool

isValid()

public function isValid(): bool

Tells if the file upload has no errors and is stored in the temporary directory.

Returns bool

move()

public function move(string $destination, bool $overwrite = false): bool

Moves the uploaded file to a new destination.

Parameters
  • string $destination - The filename to move the file
  • bool $overwrite
Returns bool

setErrorMessage()

protected function setErrorMessage(int $code): void
Parameters
  • int $code
Returns void