Here is my code where I am trying to send a correct header depedning on a type of a document. I figured out the headers for pdf, doc and docx but I still need to know correct he
You can simply echo $_FILES['input_tag_name']['type'] after upload a file to know the MIME type of that file.