Basically the code below is only allowing pictures through I have added .mov
and .mp4
to the allow list however it still outputs that the file is n
getimagesize
function will determine the size of any given image file and return the dimensions along with the file type and a height/width text string to be used inside a normal HTML IMG tag and the correspondent HTTP content type.
As it completly mention in document it will only work for image file.You are try to upload video file .mov and .mp4
that's the reason you get that error
For getting dimension of video file check How to get video duration, dimension and size in PHP?