Situation
when I choose a file to upload for a patient, then click Upload, Nothing happens, no error shown , only Blank screen comes
Screenshot attached
OpenEMR Version
I’m using OpenEMR version 6 on Windows → Just installed
After Debugging Log Turned on -->
" Fatal error : Uncaught Error: Call to undefined function mime_content_type() in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php:112 Stack trace: #0 C:\inetpub\wwwroot\openemr\controllers\C_Document.class.php(236): isWhiteFile() #1 C:\inetpub\wwwroot\openemr\library\classes\Controller.class.php(126): C_Document->upload_action_process() #2 C:\inetpub\wwwroot\openemr\controller.php(6): Controller->act() #3 {main} thrown in C:\inetpub\wwwroot\openemr\library\sanitize.inc.php on line 112 "
Doesn’t make sense! mime_content_type() is a PHP function and valid on all current versions of PHP.
I just tested jpg and png uploads okay.
No idea why you’d get this error!
Here’s a crazy idea that might help, clone the repo and run the docker-compose up from the openemr/docker/development-easy folder and see if you experience the same issue. If you don’t it might most likely be a permission issue between PHP and windows.