I am using the mime_content_type() function for file upload, it works fine on localhost however I\'m encountering the following error on my live server:
mime_content_type()
Edit your php.ini file and uncomment extension=php_fileinfo.dll.
php.ini
extension=php_fileinfo.dll
Restart your HTTP server (e.g. Apache).
echo mime_content_type($path_absolute.$file);//Outputs: application/pdf