html input accept all files code example
Example 1: html upload image
<input type="file" accept="image/*" />
Example 2: input type file select only video
accept="video/mp4,video/x-m4v,video/*"
<input type="file" accept="image/*" />
accept="video/mp4,video/x-m4v,video/*"