accept file input code example
Example 1: accept only image input file
<input type="file" name="myImage" accept="image/x-png,image/gif,image/jpeg" />
Example 2: file accept videos
accept="video/mp4,video/x-m4v,video/*"
Example 3: input type file filter extensions
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
Example 4: accept vedio pdf files upload html
<input type="file" accept=" video/*" />
Example 5: accept video input
//input nose