Document upload error


(JC Fourie) #1

Situation
When trying to upload document or id image (.jpg), this error occurs:
Fatal error : Uncaught Error: Call to undefined function mime_content_type() in /home/ccfsecur/public_html/eedenglen/openemr/library/sanitize.inc.php:105 Stack trace: #0 /home/ccfsecur/public_html/eedenglen/openemr/controllers/C_Document.class.php(156): isWhiteFile(’/tmp/phpwBK1hK’) #1 /home/ccfsecur/public_html/eedenglen/openemr/library/classes/Controller.class.php(128): C_Document->upload_action_process(‘43’, ‘5’) #2 /home/ccfsecur/public_html/eedenglen/openemr/controller.php(5): Controller->act(Array) #3 {main} thrown in /home/ccfsecur/public_html/eedenglen/openemr/library/sanitize.inc.php on line 105
OpenEMR Version
I’m using OpenEMR version 5.0.2

Browser:
I’m using: Mozilla Firefox

Operating System
I’m using: Linux

Logs
Did you check the logs? Was there anything pertinent in them? Nothing pertinent


(Stephen Waite) #2

hi @JCF, what php version are you running and is this on shared hosting like cpanel?


(JC Fourie) #3

Hi Stephen, php version 7.2 and yes, it is on shared hosting witrh cPanel.


(Stephen Waite) #4

ok, think there’s a setting for the fileinfo extension on cpanel


(JC Fourie) #5

Thank you Stephen
That did the trick, working beautifully.