max_size 0 no limit not working - 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: max_size 0 no limit not working (/showthread.php?tid=67361) |
max_size 0 no limit not working - wolfgang1983 - 02-14-2017 I get this error when upload image The uploaded file exceeds the maximum allowed size in your PHP configuration file. How can I in crease can some one tell me where to place it or how to fix it? PHP Code: $config['max_size'] = 0; Code: ; Maximum allowed size for uploaded files. PHP Code: public function upload_attachments() { I created a php.ini file and added this Bud does not change any thing still get error RE: php.ini codeigniter - pdthinh - 02-14-2017 (02-14-2017, 07:58 PM)wolfgang1983 Wrote: I get this error when upload image php.ini is configuration file of PHP, not CI. If you use XAMPP, it location may be c:/xampp/php RE: php.ini codeigniter - wolfgang1983 - 02-15-2017 (02-14-2017, 11:48 PM)pdthinh Wrote:(02-14-2017, 07:58 PM)wolfgang1983 Wrote: I get this error when upload image I set this to Code: $config['max_size'] = 0; I should be no limit / unlimited but not. RE: max_size 0 no limit not working - salain - 02-15-2017 Hi, Are you sure your php.ini has been loaded? You can try to add it to your .htaccess file like this: php_value upload_max_filesize 64M php_value post_max_size 64M |