finfo_file(): Empty filename or path in CodeIgniter 4.0.4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: finfo_file(): Empty filename or path in CodeIgniter 4.0.4 (/showthread.php?tid=77155) |
finfo_file(): Empty filename or path in CodeIgniter 4.0.4 - anggakswr - 07-26-2020 I'm having this error when I try to upload 1 image in CodeIgniter 4.0.4. SYSTEMPATH/Files/File.php at line 153 Code: 152 $finfo = finfo_open(FILEINFO_MIME_TYPE); This is my code: Code: if ($img = $this->request->getFile('foto')) { But when I try to upload multiple images, it works fine. This is the code to upload multiple images: Code: $fileFoto = $this->request->getFileMultiple('foto'); Is there a problem when CodeIgniter upgrade to version 4.0.4 because I did not experience problems when uploading a single file in version 4.0.3. |