Hi,
I have a form whereby the user can upload either a Word DOC or an Acrobat PDF.
I am doing a check based on the $_FILES[]['type'] value for either 'application/msword' or 'application/pdf'.
However I have noticed during my Googling that Word files are also referred to as 'application/x-msword-doc', 'application/vnd.ms-word' and so forth.
Will I have to check for all these different variants or is the $_FILES[]['type'] value specific to my server so no matter what browser someone uses I can always check for 'application/msword'?
I have a form whereby the user can upload either a Word DOC or an Acrobat PDF.
I am doing a check based on the $_FILES[]['type'] value for either 'application/msword' or 'application/pdf'.
However I have noticed during my Googling that Word files are also referred to as 'application/x-msword-doc', 'application/vnd.ms-word' and so forth.
Will I have to check for all these different variants or is the $_FILES[]['type'] value specific to my server so no matter what browser someone uses I can always check for 'application/msword'?