I've found that on a website I have set up on two different servers, on one of the servers, when I upload a particular file, the file's mimetype is detected as video/mpeg using mime_content_type($filepath);
, but on the other server, the same file mimetype is determined to be application/octet-stream in the same line of code. Is there some sort of PHP setting or differences in PHP versions that would cause this to happen? The first server is running PHP 5.3.27, and the second is running PHP 5.3.2.
Edit: The same thing happens when I try to determine mimetype through FileInfo as well.