Jquery validate verifies the File Upload type
Because jquery validate is used by the project development to verify the uploaded files, it is found that the built-in verification function is rich and easy to use. However, some MIME files are not frequently used and are not easy to view.
For this example, see w3cschool.
The possible MINIEType types are as follows:
. Dotx, application/vnd. openxmlformats-officedocument.wordprocessingml.template
. Docx, application/vnd.openxmlformats-officedocument.wordprocessingml.doc ument
. Xlsx, application/vnd. openxmlformats-officedocument.spreadsheetml.sheet
. Pptx, application/vnd. openxmlformats-officedocument.presentationml.presentation
. Doc, application/msword
. Dot, application/msword
. Xls, application/vnd. ms-excel
. Ppt-application/mspowerpoint
More>
An official listing of defined MIME types:
. Ai-application/postscript
. Aif-audio/x-aiff
. Aifc-audio/x-aiff
. Aiff-audio/x-aiff
. Asc-text/plain
. Au-audio/basic
. Avi-video/x-msvideo
. Bcpio-application/x-bcpio
. Bin-application/octet-stream
. C-text/plain
. Cc-text/plain
. Ccad-application/clariscad
. Cdf-application/x-netcdf
. Class-application/octet-stream
. Cpio-application/x-cpio
. Cpt-application/mac-compactpro
. Csh-application/x-csh
. Css-text/css
. Dcr-application/x-director
. Dir-application/x-director
. Dms-application/octet-stream
. Doc-application/msword
. Drw-application/drafting
. Dvi-application/x-dvi
. Dwg-application/acad
. Dxf-application/dxf
. Dxr-application/x-director
. Eps-application/postscript
. Etx-text/x-setext
. Exe-application/octet-stream
. Ez-application/andrew-inset
. F-text/plain
. F90-text/plain
. Fli-video/x-fli
. Gif-image/gif
. Gtar-application/x-gtar
. Gz-application/x-gzip
. H-text/plain
. Hdf-application/x-hdf
. Hh-text/plain
. Hqx-application/mac-binhex40
. Htm-text/html
. Html-text/html
. Ice-x-conference/x-cooltalk
. Ief-image/ief
. Iges-model/iges
. Ig-model/iges
. Ips-application/x-ipscript
. Ipx-application/x-ipix
. Jpe-image/jpeg
. Jpeg-image/jpeg
. Jpg-image/jpeg
. Js-application/x-javascript
. Kar-audio/midi
. Latex-application/x-latex
. Lha-application/octet-stream
. Lsp-application/x-lisp
. Lzh-application/octet-stream
. M-text/plain
. Man-application/x-troff-man
. Me-application/x-troff-me
. Mesh-model/mesh
. Mid-audio/midi
. Midi-audio/midi
. Mif-application/vnd. mif
. Mime-www/mime
. Mov-video/quicktime
. Movie-video/x-sgi-movie
. Mp2-audio/mpeg
. Mp3-audio/mpeg
. Mpe-video/mpeg
. Mpeg-video/mpeg
. Mpg-video/mpeg
. Mpga-audio/mpeg
. Ms-application/x-troff-ms
. Msh-model/mesh
. Nc-application/x-netcdf
. Oda-application/oda
. Pbm-image/x-portable-bitmap
. Pdb-chemical/x-pdb
. Pdf-application/pdf
. Pgm-image/x-portable-graymap
. Pgn-application/x-chess-pgn
. Png-image/png
. Pnm-image/x-portable-anymap
. Pot-application/mspowerpoint
. Ppm-image/x-portable-pixmap
. Pps-application/mspowerpoint
. Ppt-application/mspowerpoint
. Ppz-application/mspowerpoint
. Pre-application/x-freelance
. Prt-application/pro_eng