php unexpected mime type docx

Viewed 30

I have a form to handle file uploads of restricted types (pdf, docx, etc) I had someone tell me they couldn't upload a docx. Oddly, other people can. So, I had the form show me the $mime_type for this particular file

$mime_type = mime_content_type($_FILES['input_name']['tmp_name']);

and it came back with this:

application/vnd.openxmlformats-officedocument.wordprocessingml.documentapplication/vnd.openxmlformats-officedocument.wordprocessingml.document

appears to be doubled up!? I ran some other docx files through it and they call came back as expected. Please can someone tell me what would cause this file type to be double?

Thank you

0 Answers
Related