input type file take only video file code example Example: input type file select only video accept="video/mp4,video/x-m4v,video/*"