Find a method to judge the file header by using js

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

.

should be < input type= "file" accept= "* .mp4" > bar

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37490-2c073.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37490-2c073.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?