CSS Upload problem

CSS files can’t be uploaded on our OJS installation.

I’ve read http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=908 , but it does not provide a solution.
The problem is that with PHP 5.3, mime_content_type() has been removed and therefore the file type isn’t checked correctly.

Please provide a patch.

First check your config.inc.php setting mime_database_path to ensure this file exists and is the best source for magic.mime on your system:

In 2.4.6, String::mime_content_type() checks the deprecated mime_content_type() and upgrades to finfo() if mime_content_type is not available. If neither mime_content_type() nor finfo() is available, we fall back to the file command. Sometimes the filetype is truly ambiguous, such as in the case of CSS files, and so there is a set of hardcoded disambiguations to close out the function.