When I echo the file type of a docx file, it seems to be cut off. Does any one has any idea where I might be wrong?
$strInputFile = “test.docx;
echo $file_type = $_FILES[$strInputFile][“type”]; // gives application/vnd.openxmlformats-officedocument.word
Thanks
The file type to compare was getting saved to the database and it was getting cut of from there. Increased the field value size in db and its working fine now.