I need to determine what type of downloaded file
When downloading the .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 not .xlsx , but the .xls file type is mime.
So why does mime_content_type() return the application/vnd.ms-excel function for the .xlsx file? where is the truth?
source share