getting 413 Request Entity Too Large error

Avatar
  • Answered
I am getting "413 Request Entity Too Large" error, when trying to upload image using ajax. I have already tried following things but no luck.
memory_limit=800M
post_max_size=800M
upload_max_filesize=256M
After that I talked to inmotionhosting support, but they suggested to disable mod_security rule. But I think we can resolve this issue by increasing "SecRequestBodyInMemoryLimit" in mod_security.conf file or we can use suhosin.

Please suggest the best way to overcome this issue.
Avatar
JeffMa
The issue appears to be caused by sending too much data within the HTTP headers. This can be fixed by adjusting the LimitRequestFieldSize directive within your Apache configuration on the server. If you have root access, simply add the directive with a size to the right of it. If you do not have root access, you will need to submit a ticket with technical support for them to make the change for you. This change will require a VPS or dedicated server.