Trying to add a patient Photo but getting this error

PHP Fatal error:  Uncaught Error: Call to undefined function mime_content_type() in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php:117
Stack trace:
#0 C:\inetpub\wwwroot\openemr\controllers\C_Document.class.php(258): isWhiteFile('C:\\Windows\\Temp...')
#1 C:\inetpub\wwwroot\openemr\library\classes\Controller.class.php(147): C_Document->upload_action_process('1', '10')
#2 C:\inetpub\wwwroot\openemr\controller.php(6): Controller->act(Array)
#3 {main}
  thrown in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php on line 117

Hi @David_Beachboard,

Gonna need more info that. What version of OpenEMR, on what OS, and how the install is managed.

looks like for windows have to do something special for fileinfo installation according to php.net

thanks!!! that was it! Had to enable fileinfo

1 Like