![]() |
Set Max Size in CodeIgniter File Upload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Set Max Size in CodeIgniter File Upload (/showthread.php?tid=76247) |
Set Max Size in CodeIgniter File Upload - EseMiami - 04-25-2020 I am trying to a jpeg file which is more than 2mb even after setting maximum size in my php.ini but still the file is not getting uploaded. Please help to find the solution for this problem. How can I increase the maximum file upload size? Code: public function handle_upload($str,$is_required) RE: Set Max Size in CodeIgniter File Upload - php_rocs - 04-25-2020 @EseMiami, What php.ini settings did you set (and what amount)? Hopefully you set these (memory_limit, upload_max_filesize, post_max_size). RE: Set Max Size in CodeIgniter File Upload - EseMiami - 04-26-2020 (04-25-2020, 03:37 PM)php_rocs Wrote: @EseMiami,This is what I did .... In cPanel I searched for php, then "Select PHP version" under Software. Software -> Select PHP Version -> Switch to Php Options -> Change Value -> save. I set my memory_limit to =128M upload_max_size =128M post_max_size = 128M RE: Set Max Size in CodeIgniter File Upload - php_rocs - 04-26-2020 @EseMiami, Did you check the values of $_FILES["file"]['type'], $_FILES["file"]["size"], $_FILES["file"]["name"]? What was it? Also, if you are getting an error what is the error message? |