Better Mime Type Fix 

This might be a better fix for issue 3, if mime_content_type function does not exist and you don't have the php_fileinfo extension installed.