use < input type= "file" >
to upload files, only video can be displayed when selecting files
use the accept attribute of input: < input type= "file" accept= "video/mp4" >
cannot select files in mp4 format on Android phones
there are many methods to judge the file type by the suffix name on the Internet, but this method is not accurate, and some files do not seem to show the suffix name
Please advise a way to use js to judge the file header to limit the selection of video files when uploading