Home > Developer > Web Develop
The following are some of the more commonly used property values:
Accept: Represents the file MIME type that can be selected, multiple MIME types are separated by commas, and the commonly used MIME types are shown in the following table.
Multiple: Whether multiple files can be selected, the value of which is the virtual path of the first file when multiple files.
1. AcceptOnly PNG and GIF images can be selected
2, multiple<input id="fileId1" type="file" accept="image/png,image/gif" name="file" />
Multiple file uploads
3. Common MIME Types<input id="fileId2" type="file" multiple="multiple" name="file" />
Suffix nameMimeName*.3gppAudio/3gpp,Video/3gpp*.AC3 Audio/Ac3*.ASF Allpication/Vnd.Ms-Asf*.Au audio/Basic*.CSS text/Css*.CSV text/Csv*.Doc Application/MSWord*.DOT Application/MSWord*.DTD application/Xml-Dtd*.DWG image/Vnd.Dwg*.DXF image/Vnd.Dxf*.GIF image/Gif*.HTM text/Html*.HTML text/Html*.JP2 image/Jp2*.JPE image/Jpeg*.JPEG image/Jpeg*.JPG image/Jpeg*.JS text/Javascript,Application/Javascript*.JSON application/Json*.MP2 Audio/Mpeg,Video/Mpeg*.MP3 Audio/Mpeg*.MP4 Audio/mp4,Video/mp4*.MPEG Video/Mpeg*.MPG video/Mpeg*.MPP Application/Vnd.Ms-Project*.OGG Application/Ogg,Audio/Ogg*.PDF application/Pdf*.PNG image/Png*.Pot application/Vnd.Ms-Powerpoint*.PPS Application/Vnd.Ms-Powerpoint*.PPT Application/Vnd.Ms-Powerpoint*.RTF Application/Rtf,Text/Rtf*.SVF image/Vnd.Svf*.TIF image/Tiff*.TIFF image/Tiff*.TXT text/Plain*.WDB Application/Vnd.Ms-Works*.WPS Application/Vnd.Ms-Works*.XHTML application/Xhtml+Xml*.XLC Application/Vnd.Ms-Excel*.XLM application/Vnd.Ms-Excel*.XLS application/