When we do file upload and download, often use the following mimetype, listed below for your reference! Want more top Top
'. A ': ' Application/octet-stream ',
'. Ai ': ' Application/postscript ',
'. AIF ': ' Audio/x-aiff ',
'. aifc ': ' Audio/x-aiff ',
'. Aiff ': ' Audio/x-aiff ',
'. Au ': ' Audio/basic ',
'. avi ': ' Video/x-msvideo ',
'. Bat ': ' Text/plain ',
'. Bcpio ': ' Application/x-bcpio ',
'. Bin ': ' Application/octet-stream ',
'. bmp ': ' Image/x-ms-bmp ',
'. C ': ' Text/plain ',
# Duplicates:(
'. CDF ': ' APPLICATION/X-CDF ',
'. CDF ': ' APPLICATION/X-NETCDF ',
'. Cpio ': ' Application/x-cpio ',
'. Csh ': ' Application/x-csh ',
'. css ': ' Text/css ',
'. dll ': ' Application/octet-stream ',
'. Doc ': ' Application/msword ',
'. Dot ': ' Application/msword ',
'. DVI ': ' Application/x-dvi ',
'. eml ': ' message/rfc822 ',
'. EPs ': ' Application/postscript ',
'. Etx ': ' Text/x-setext ',
'. exe ': ' Application/octet-stream ',
'. gif ': ' Image/gif ',
'. Gtar ': ' Application/x-gtar ',
'. h ': ' Text/plain ',
'. HDF ': ' APPLICATION/X-HDF ',
'. htm ': ' text/html ',
'. html ': ' text/html ',
'. Ief ': ' Image/ief ',
'. Jpe ': ' Image/jpeg ',
'. jpeg ': ' Image/jpeg ',
'. jpg ': ' Image/jpeg ',
'. js ': ' Application/x-javascript ',
'. Ksh ': ' Text/plain ',
'. Latex ': ' Application/x-latex ',
'. m1v ': ' Video/mpeg ',
'. Man ': ' Application/x-troff-man ',
'. Me ': ' Application/x-troff-me ',
'. mht ': ' message/rfc822 ',
'. MHTML ': ' message/rfc822 ',
'. MIF ': ' APPLICATION/X-MIF ',
'. mov ': ' Video/quicktime ',
'. Movie ': ' Video/x-sgi-movie ',
'. Mp2 ': ' Audio/mpeg ',
'. mp3 ': ' Audio/mpeg ',
'. MPa ': ' Video/mpeg ',
'. Mpe ': ' Video/mpeg ',
'. Mpeg ': ' Video/mpeg ',
'. mpg ': ' Video/mpeg ',
'. Ms ': ' Application/x-troff-ms ',
'. NC ': ' APPLICATION/X-NETCDF ',
'. NWS ': ' message/rfc822 ',
'. O ': ' Application/octet-stream ',
'. obj ': ' Application/octet-stream ',
'. Oda ': ' Application/oda ',
'. P12 ': ' application/x-pkcs12 ',
'. p7c ': ' Application/pkcs7-mime ',
'. PBM ': ' Image/x-portable-bitmap ',
'. pdf ': ' Application/pdf ',
'. PFX ': ' APPLICATION/X-PKCS12 ',
'. PGM ': ' Image/x-portable-graymap ',
'. Pl ': ' Text/plain ',
'. png ': ' Image/png ',
'. PNM ': ' Image/x-portable-anymap ',
'. Pot ': ' Application/vnd.ms-powerpoint ',
'. PPA ': ' Application/vnd.ms-powerpoint ',
'. ppm ': ' Image/x-portable-pixmap ',
'. pps ': ' Application/vnd.ms-powerpoint ',
'. ppt ': ' Application/vnd.ms-powerpoint ',
'. ps ': ' Application/postscript ',
'. Pwz ': ' Application/vnd.ms-powerpoint ',
'. Py ': ' Text/x-python ',
'. PYc ': ' Application/x-python-code ',
'. Pyo ': ' Application/x-python-code ',
'. Qt ': ' Video/quicktime ',
'. Ra ': ' Audio/x-pn-realaudio ',
'. Ram ': ' Application/x-pn-realaudio ',
'. Ras ': ' Image/x-cmu-raster ',
'. RDF ': ' Application/xml ',
'. RGB ': ' Image/x-rgb ',
'. Roff ': ' Application/x-troff ',
'. Rtx ': ' Text/richtext ',
'. SGM ': ' TEXT/X-SGML ',
'. SGML ': ' TEXT/X-SGML ',
'. Sh ': ' Application/x-sh ',
'. Shar ': ' Application/x-shar ',
'. snd ': ' Audio/basic ',
'. So ': ' Application/octet-stream ',
'. Src ': ' Application/x-wais-source ',
'. Sv4cpio ': ' Application/x-sv4cpio ',
'. SV4CRC ': ' APPLICATION/X-SV4CRC ',
'. swf ': ' Application/x-shockwave-flash ',
'. T ': ' Application/x-troff ',
'. Tar ': ' Application/x-tar ',
'. Tcl ': ' Application/x-tcl ',
'. Tex ': ' Application/x-tex ',
'. Texi ': ' Application/x-texinfo ',
'. Texinfo ': ' Application/x-texinfo ',
'. tif ': ' Image/tiff ',
'. Tiff ': ' Image/tiff ',
'. Tr ': ' Application/x-troff ',
'. TSV ': ' Text/tab-separated-values ',
'. txt ': ' Text/plain ',
'. Ustar ': ' Application/x-ustar ',
'. VCF ': ' Text/x-vcard ',
'. wav ': ' Audio/x-wav ',
'. Wiz ': ' Application/msword ',
'. wsdl ': ' Application/xml ',
'. XBM ': ' Image/x-xbitmap ',
'. Xlb ': ' Application/vnd.ms-excel ',
# Duplicates:(
'. xls ': ' Application/excel ',
'. xls ': ' Application/vnd.ms-excel ',
'. Xml ': ' Text/xml ',
'. Xpdl ': ' Application/xml ',
'. xpm ': ' Image/x-xpixmap ',
'. Xsl ': ' Application/xml ',
'. Xwd ': ' Image/x-xwindowdump ',
'. Zip ': ' Application/zip ',
}
File upload allowedtypes and file download contenttype (MimeType)