<input type= "File"/> only displays the specified file type when browsing
<input type= "File" accept= "Application/msword" >
Accept attribute list:
1.accept= "Application/msexcel"
2.accept= "Application/msword"
3.accept= "Application/pdf"
4.accept= "Application/poscript"
5.accept= "Application/rtf"
6.accept= "Application/x-zip-compressed"
7.accept= "Audio/basic"
8.accept= "Audio/x-aiff"
9.accept= "Audio/x-mpeg"
10.accept= "Audio/x-pn/realaudio"
11.accept= "Audio/x-waw"
12.accept= "Image/gif"
13.accept= "Image/jpeg"
14.accept= "Image/tiff"
15.accept= "Image/x-ms-bmp"
16.accept= "IMAGE/X-PHOTO-CD"
17.accept= "Image/x-png"
18.accept= "Image/x-portablebitmap"
19.accept= "Image/x-portable-greymap"
20.accept= "Image/x-portable-pixmap"
21.accept= "Image/x-rgb"
22.accept= "Text/html"
23.accept= "Text/plain"
24.accept= "Video/quicktime"
25.accept= "VIDEO/X-MPEG2"
26.accept= "Video/x-msvideo"
27. or direct (. apk) Other formats are OK
If you do not restrict the format of the image, it can be written as: accept= "image/*". Also can set multiple property values, the eradication of attribute value selection required!
About the input file submission selection format