Class 'finfo' not foun

Trying to upload an image to the File Manager after a recent upgrade to 8.5.4.
Getting an Error

Class 'finfo' not found


C:\inetpub\Intranet\concrete\vendor\league\flysystem\src\Adapter\Local.php(319): Whoops\Exception\ErrorException->null
C:\inetpub\Intranet\concrete\vendor\filp\whoops\src\Whoops\Run.php(434): Whoops\Run->handleError
[internal](0): Whoops\Run->handleShutdown

tbrunet replied on at Permalink Reply
public function getMimetype($path)
        $location = $this->applyPathPrefix($path);
        $finfo = new Finfo(FILEINFO_MIME_TYPE);
        $mimetype = $finfo->file($location);
        if (in_array($mimetype, ['application/octet-stream', 'inode/x-empty'])) {
            $mimetype = Util\MimeType::detectByFilename($location);
        return ['path' => $path, 'type' => 'file', 'mimetype' => $mimetype];
tbrunet replied on at Permalink Reply
Looks like it throws this error when clicking on a link that forces a download to the computer.
Gondwana replied on at Permalink Reply
I think you need to install/enable the corresponding php extension.
tbrunet replied on at Permalink Reply
This was working before the upgrade.

What php extension would cause this? What needs to be enabled?
drbiskit replied on at Permalink Reply
fileinfo is a PHP extension that needs to be enabled in your server configuration - So, it depends on your setup and what you have access to... If you have a cPanel setup and have access to WHM - this is a step by step guide:

If you don't have access, or are unsure about doing it yourself, then you're probably best sending a helpdesk request to your hosting support.

Hope that helps.