Welcome Guest, Not a member yet? Register   Sign In
Warning: POST Content-Length of X bytes exceeds the limit of Y bytes in
#1

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?
Reply
#2

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB