input has a property accept = "image / *" That's it, at the same time in line to see the other answers, try the next effect is nothing. Write record
as follows:
-
Use input: file labels, to call the default camera, camera, sound recording function, in fact, there is a capture attributes 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, said the system can capture the default device, such as: camera-- camera; camcorder-- camera; microphone-- recording.
accept representation, directly open the file system directory.
-
input: file tag also supports a multiple attribute, that can support multiple choice, such as:
<input type="file" accept="image/*" multiple>
After adding this multiple, capture it futile, because the multiple is designed to support multiple choice.