gautamlakum gautamlakum - 1 year ago 100
PHP Question

Request Entity Too Large PHP

In one of my CakePHP site, I got this error.

Request Entity Too Large

I don't know what is the problem. I think the data that I am posting through form is too large. I searched this in search engine and got that I will have to increase

. Be default I think it is set to 8M.

But don't know how to increase
in CakePHP and what to do for it?


Answer Source

post_max_size and upload_max_filesize are PHP.ini settings. You can set them either directly in PHP.ini or via ini_set. I don't know if this can be set with some Cake-internal tools as well.

However, the error could also be caused by a set limit of the RequestBodyLength in Apache (assuming you are running under Apache).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download