This array contains common MIME types. if you need to download files, you can view the file extension through this array to determine whether the file can be downloaded.
- $ Mime_types = array ("323" => "text/h323 ",
- "Acx" => "application/internet-property-stream ",
- "Ai" => "application/postscript ",
- "Aif" => "audio/x-aiff ",
- "Aifc" => "audio/x-aiff ",
- "Aiff" => "audio/x-aiff ",
- "Asf" => "video/x-ms-asf ",
- "Asr" => "video/x-ms-asf ",
- "Asx" => "video/x-ms-asf ",
- "Au" => "audio/basic ",
- "Avi" => "video/x-msvideo ",
- "Axs" => "application/olescript ",
- "Bas" => "text/plain ",
- "Bcpio" => "application/x-bcpio ",
- "Bin" => "application/octet-stream ",
- "Bmp" => "image/bmp ",
- "C" => "text/plain ",
- "Cat" => "application/vnd. ms-pkiseccat ",
- "Cdf" => "application/x-cdf ",
- "Cer" => "application/x-x509-ca-cert ",
- "Class" => "application/octet-stream ",
- "Clp" => "application/x-msclip ",
- "Cmx" => "image/x-cmx ",
- "Cod" => "image/cis-cod ",
- "Cpio" => "application/x-cpio ",
- "Crd" => "application/x-mscardfile ",
- "Crl" => "application/pkix-crl ",
- "Crt" => "application/x-x509-ca-cert ",
- "Csh" => "application/x-csh ",
- "Css" => "text/css ",
- "Dcr" => "application/x-director ",
- "Der" => "application/x-x509-ca-cert ",
- "Dir" => "application/x-director ",
- "Dll" => "application/x-msdownload ",
- "Dms" => "application/octet-stream ",
- "Doc" => "application/msword ",
- "Dot" => "application/msword ",
- "Dvi" => "application/x-dvi ",
- "Dxr" => "application/x-director ",
- "Eps" => "application/postscript ",
- "Etx" => "text/x-setext ",
- "Evy" => "application/envoy ",
- "Exe" => "application/octet-stream ",
- "Fif" => "application/fractals ",
- "Flr" => "x-world/x-fig ",
- "Gif" => "image/gif ",
- "Gtar" => "application/x-gtar ",
- "Gz" => "application/x-gzip ",
- "H" => "text/plain ",
- "Hdf" => "application/x-hdf ",
- "Hlp" => "application/winhlp ",
- "Hqx" => "application/mac-binhex40 ",
- "Hta" => "application/hta ",
- "Htc" => "text/x-component ",
- "Htm" => "text/html ",
- "Html" => "text/html ",
- "Htt" => "text/webviewhtml ",
- "Ico" => "image/x-icon ",
- "Ief" => "image/ief ",
- "Iii" => "application/x-iphone ",
- "Ins" => "application/x-internet-signup ",
- "Isp" => "application/x-internet-signup ",
- "Jfif" => "image/pipeg ",
- "Jpe" => "image/jpeg ",
- "Jpeg" => "image/jpeg ",
- "Jpg" => "image/jpeg ",
- "Js" => "application/x-javascript ",
- "Latex" => "application/x-latex ",
- "Lha" => "application/octet-stream ",
- "Lsf" => "video/x-la-asf ",
- "Lsx" => "video/x-la-asf ",
- "Lzh" => "application/octet-stream ",
- "M13" => "application/x-msmediaview ",
- "M14" => "application/x-msmediaview ",
- "M3u" => "audio/x-mpegurl ",
- "Man" => "application/x-troff-man ",
- "Mdb" => "application/x-msaccess ",
- "Me" => "application/x-troff-me ",
- "Mht" => "message/rfc822 ",
- "Mhtml" => "message/rfc822 ",
- "Mid" => "audio/mid ",
- "Mny" => "application/x-msmoney ",
- "Mov" => "video/quicktime ",
- "Movie" => "video/x-sgi-movie ",
- "Mp2" => "video/mpeg ",
- "Mp3" => "audio/mpeg ",
- "Mpa" => "video/mpeg ",
- "Mpe" => "video/mpeg ",
- "Mpeg" => "video/mpeg ",
- "Mpg" => "video/mpeg ",
- "Mpp" => "application/vnd. ms-project ",
- "Mpv2" => "video/mpeg ",
- "Ms" => "application/x-troff-ms ",
- "Mvb" => "application/x-msmediaview ",
- "Nws" => "message/rfc822 ",
- "Oda" => "application/oda ",
- "P10" => "application/pkcs10 ",
- "P12" => "application/x-pkcs12 ",
- "P7b" => "application/x-pkcs7-certificates ",
- "P7c" => "application/x-pkcs7-mime ",
- "P7m" => "application/x-pkcs7-mime ",
- "P7r" => "application/x-pkcs7-certreqresp ",
- "P7s" => "application/x-pkcs7-signature ",
- "Pbm" => "image/x-portable-bitmap ",
- "Pdf" => "application/pdf ",
- "Pfx" => "application/x-pkcs12 ",
- "Pgm" => "image/x-portable-graymap ",
- "Pko" => "application/ynd. ms-pkipko ",
- "Pma" => "application/x-perfmon ",
- "Pmc" => "application/x-perfmon ",
- "Pml" => "application/x-perfmon ",
- "Pmr" => "application/x-perfmon ",
- "Pmw" => "application/x-perfmon ",
- "Pnm" => "image/x-portable-anymap ",
- "Pot" => "application/vnd. ms-powerpoint ",
- "Ppm" => "image/x-portable-pixmap ",
- "Pps" => "application/vnd. ms-powerpoint ",
- "Ppt" => "application/vnd. ms-powerpoint ",
- "Prf" => "application/pics-rules ",
- "Ps" => "application/postscript ",
- "Pub" => "application/x-mspublisher ",
- "Qt" => "video/quicktime ",
- "Ra" => "audio/x-pn-realaudio ",
- "Ram" => "audio/x-pn-realaudio ",
- "Ras" => "image/x-cmu-raster ",
- "Rgb" => "image/x-rgb ",
- "Rmi" => "audio/mid ",
- "Roff" => "application/x-troff ",
- "Rtf" => "application/rtf ",
- "Rtx" => "text/richtext ",
- "Scd" => "application/x-msschedule ",
- "Sct" => "text/scriptlet ",
- "Setpay" => "application/set-payment-initiation ",
- "Setreg" => "application/set-registration-initiation ",
- "Sh" => "application/x-sh ",
- "Shar" => "application/x-shar ",
- "Sit" => "application/x-stuffit ",
- "Snd" => "audio/basic ",
- "Spc" => "application/x-pkcs7-certificates ",
- "Spl" => "application/futuresplash ",
- "Src" => "application/x-wais-source ",
- "Sst" => "application/vnd. ms-pkicertstore ",
- "Stl" => "application/vnd. ms-pkistl ",
- "Stm" => "text/html ",
- "Svg" => "image/svg + xml ",
- "Sv4cpio" => "application/x-sv4cpio ",
- "Sv4crc" => "application/x-sv4crc ",
- "T" => "application/x-troff ",
- "Tar" => "application/x-tar ",
- "Tcl" => "application/x-tcl ",
- "Tex" => "application/x-tex ",
- "Texi" => "application/x-texinfo ",
- "Texinfo" => "application/x-texinfo ",
- "Tgz" => "application/x-compressed ",
- "Tif" => "image/tiff ",
- "Tiff" => "image/tiff ",
- "Tr" => "application/x-troff ",
- "Trm" => "application/x-msterminal ",
- "Tsv" => "text/tab-separated-values ",
- "Txt" => "text/plain ",
- "Uls" => "text/iuls ",
- "Ustar" => "application/x-ustar ",
- "Vcf" => "text/x-vcard ",
- "Fig" => "x-world/x-fig ",
- "Wav" => "audio/x-wav ",
- "Wcm" => "application/vnd. ms-works ",
- "Wdb" => "application/vnd. ms-works ",
- "Wks" => "application/vnd. ms-works ",
- "Wmf" => "application/x-msmetafile ",
- "Wps" => "application/vnd. ms-works ",
- "Wri" => "application/x-mswrite ",
- "Wrl" => "x-world/x-fig ",
- "Wrz" => "x-world/x-fig ",
- "Xaf" => "x-world/x-fig ",
- "Xbm" => "image/x-xbitmap ",
- "Xla" => "application/vnd. ms-excel ",
- "Xlc" => "application/vnd. ms-excel ",
- "Xlm" => "application/vnd. ms-excel ",
- "Xls" => "application/vnd. ms-excel ",
- "Xlt" => "application/vnd. ms-excel ",
- "Xlw" => "application/vnd. ms-excel ",
- "Xof" => "x-world/x-fig ",
- "Xpm" => "image/x-xpixmap ",
- "Xwd" => "image/x-xwindowdump ",
- "Z" => "application/x-compress ",
- "Zip" => "application/zip ");
|