I need determine what is type of uploaded file
When upload .xlsx
file, this code:
echo $_FILES['uploaded_file']['type']."<br>";
echo mime_content_type($_FILES['uploaded_file']['tmp_name']);
returns:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/vnd.ms-excel
As I know (from here PHP xls, xlsx, ppt, pptx headers), application/vnd.ms-excel
is not .xlsx
, but .xls
file mime type.
So, why returns mime_content_type()
function application/vnd.ms-excel
for .xlsx
file? where the truth?