[eluser]Unknown[/eluser]
Just ran into this.
If your php version is >= 5.3, make sure you have the php module finfo installed, otherwise the class will fall back on the dirty hack at the bottom which wasn't working for me, resulting in a fail no matter what because it wasn't working properly and leaving no access to the file mime type.