When uploading a Power Point 2000 document (.ppt) created in Microsoft Power Point it is a returning a mime type of application/vnd.ms-office. I would expect application/vnd.ms-powerpoint to come back from:
<?php
$finfo = new finfo(FILEINFO_MIME);
$mime_type = $finfo->file($filepath);
// strip off the mime encoding information
$mime_type = substr($mime_type, 0, strpos($mime_type, ';'));
Any ideas why this maybe the case?
I am running the following:
- Ubuntu
- PHP 5.2
- Apache 2
finforelies on the underlying system'sfilefunctionality so you'll probably have to investigate there. Maybe update themime_magicfile.... - Pekka