CodeIgniter Forums
Warning: POST Content-Length of X bytes exceeds the limit of Y bytes in - 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: Warning: POST Content-Length of X bytes exceeds the limit of Y bytes in (/showthread.php?tid=64440)



Warning: POST Content-Length of X bytes exceeds the limit of Y bytes in - sammyci - 02-19-2016

Ok...I kno the problem is in php.ini post post_max_size=8M but how do i get past it?

I am in local windows server so changing php.ini setting to higher value works fine. The setting and (filesize) setting can't be changed at run time with ini_set().

I have tried .user.ini by placing it in the controller that accepts multiple post files (controllers/manage/Upload) as well as .htaccess files with the follwing directives:

.user.ini: upload_max_filesize = 10M
post_max_size = 100M

and .htaccess:

php_value upload_max_filesize 10M
php_value post_max_size 100M

I even placed .user.ini in the root folder (with index.php) but failed. How will i deal in my shared host that doesn't allow editing php.ini or httpd.conf?

Any experience with that please?


RE: Warning: POST Content-Length of X bytes exceeds the limit of Y bytes in - InsiteFX - 02-19-2016

If the upload_max_filesize is larger than post_max_size, you must increase post_max_size so that it is bigger than upload_max_size.

If the value of post_max_size is larger than memory_limit, you must increase memory_limit so that it is larger than post_max_size.