Document upload error

(JC Fourie) #1

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/ 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/ on line 105
OpenEMR Version
I’m using OpenEMR version 5.0.2

I’m using: Mozilla Firefox

Operating System
I’m using: Linux

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.