Input Type=file How to transfer the user's mobile camera
Input has a property accept= "image/*" so that you can, at the same time see the other answers on the internet, try to have no effect. Write the record down
As follows:
Use input:file tag, go to call system default camera, camera, recording function, actually has a capture property, directly explain what function to call
<input type= "File" accept= "image/*" capture= "Camera" >
<input type= "File" accept= "video/*" capture= "camcorder" >
<input type= "File" accept= "audio/*" capture= "Microphone" >
Capture indicates that the system's default device can be captured, such as: camera--camera, camcorder--camera, microphone--recording.
Accept indicates that the system files directory is opened directly.
2
The input:file tag also supports a multiple property, which indicates that multiple selections can be supported, such as:
<input type= "File" accept= "image/*" multiple>
With this multiple, capture is useless, because multiple is designed to support multiple choices.
Mobile phone's camera and album call