• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Call to undefined function CodeIgniter\Files\finfo_open()

#1
Hello.

When I try to upload a new image and get mimetype, I get errors about finfo_open.

In controller i have: 
Code:
52             $file = $this->request->getFile('userfile');
53             $typeOfFile = $file->getMimeType();


At line 53 it throws an error - "APPPATH/Controllers/Comunitate.php : 53 — CodeIgniter\Files\File->getMimeType ()". 
In SYSTEMPATH/Files/File.php at line 137 I have: Call to undefined function CodeIgniter\Files\finfo_open().

Please help me.
Reply


Messages In This Thread
Call to undefined function CodeIgniter\Files\finfo_open() - by mirel.popescu - 05-08-2019, 02:23 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.