I am uploading images and video from one browse button. On the backend side, I want to identify it's type whether it's video file, image or invalid file.
I checked with
$_FILES['name']['type']
for images it's ok there are 4-5 types of images we need to allow. But, for videos there are lots of types. Like in this case it's application/octet-stream