Enable PHP FileInfo on Windows
-
If you are trying to use PHP on Windows, you are likely to run into an issue of FileInfo being missing. This is just a matter of an odd default.
Search for your php.ini file. Edit it in Notepad (or whatever), search for a line with php_fileinfo in it. It will be commented out by default. Remove the semi-colon at the beginning of the line to activate it. The line should be...
extension=php_fileinfo.dll
And that's it. Now it works. These instructions apply to all versions of Windows and for PHP 5.4 and later, I believe. Currently tested with 7.4.