[VALIDATION] - Upload excel fail - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: [VALIDATION] - Upload excel fail (/showthread.php?tid=91892) |
[VALIDATION] - Upload excel fail - ddevsr - 10-31-2024 I have validation file upload excel PHP Code: if ($this->request->getFile('fileBuktiSelisihTxt')) { And here var_dump($_FILES); Code: array(2) { How solve this? RE: [VALIDATION] - Upload excel fail - InsiteFX - 10-31-2024 What is a correct MIME type for .docx, .pptx, etc.? RE: [VALIDATION] - Upload excel fail - ddevsr - 11-01-2024 Already correct config/Mimes RE: [VALIDATION] - Upload excel fail - ddevsr - 11-03-2024 I found problem is getMimeType(), the function give mime type application/encrypted. I think because it was passworded and reopened. Already test in CI4 base code and my project PHP Code: $ vendor/bin/phpunit tests/system/Validation/FileRulesTest.php |