I am developing application in PHP which takes video file. I am giving serverside validation ($_FILES['file']['type']
) that receive only .MP4 files.
If i upload any MP4 file from Firefox browser then file type is 'application/octet-stream' and if i upload same file from Google Chrome then file type is 'video/mp4'
.
If i upload any FLV file from Firefox then file type is also 'application/octet-stream'
then how can i identify the file type of that video?