i used file-upload in form in php. i set condition of filetype by file function. but i can't upload .doc and .docx file?? i have added proper MIME type for each though error occur. What should i do?
if($_FILES["return_files"]["name"]!= "")
{
if ((($_FILES["return_files"]["type"] == "text/plain") || ($_FILES["return_files"]["type"] == "application/pdf") || ($_FILES["return_files"]["type"] == "application/msword") || ($_FILES["return_files"]["type"] == "application/vnd.openxmlformats-officedocument.wordprocessingml.document") && ($_FILES["return_files"]["size"] < 409600))
{
..............
..............
}
}
.txt file and pdf file are uploading but doc and docx file can't upload.