josegonzalez/upload — Issue #39: Usage of finfo requires PHP 5.3
Author: ryantology
Created: 2011-12-29 20:58:27+00:00
State: open

The usage of finfo makes the requirement of the upload plugin restricted to 5.3.x

I'm not against the 5.3.x requirement but it does cause a failure in `_prepareFilesForDeletion` So the requirements should either be upgraded of maybe look for a fall back method of this. Thoughts?

```
function _getMimeType($filePath) {
$finfo = new finfo(FILEINFO_MIME_TYPE);
return $finfo->file($filePath);
}
```