2

I have a text box which has lots of data on it when I submit the form I get the error in the console

POST http://www.XXX.com/save.php 413 (Request Entity Too Large)

My PHP.INI file is below

allow_url_include = On 
post_max_size 100M
upload_max_filesize 100M
LimitRequestBody 1024000

Why do I get this error? How can I Fix it? I am posting data of I think around 2-3 Mb. ( Its HTML of a webpage )

This is the webpage, this data should be sent to the php on SAVE button http://caarve.com/highlight.php?page=en.wikipedia.org%2Fwiki%2FLydia_Zinovieva-Annibal

Yahoo
  • 4,093
  • 17
  • 59
  • 85
  • Check your error logs for memory allocation errors. Once found, bump up the size to accommodate. If you have to upload a 4 GB video or something, look into doing chunked requests. – mr-sk Dec 14 '12 at 15:55
  • 2
    don't forget Apache's `LimitRequestBody` which gets applied long before PHP ever enters into the mix. – Marc B Dec 14 '12 at 15:58
  • see this SO question: [request-entity-too-large-php](http://stackoverflow.com/questions/3718571/request-entity-too-large-php) – didierc Dec 14 '12 at 15:58
  • @BartFriederichs It should be less then 3MB, Its basically a webpage. – Yahoo Dec 14 '12 at 15:58
  • @MarcB - I used this too , and updated the Php.ini ( Now it is as above ) – Yahoo Dec 14 '12 at 16:05
  • @didierc - I Tried this too :( – Yahoo Dec 14 '12 at 16:08
  • @adi: that's an apache directive for httpd.conf, NOT a php.ini directive. – Marc B Dec 14 '12 at 16:08
  • if these parameters don't have an impact on the error, would you be kind to show us the relevant bit of code dealing with this form? – didierc Dec 14 '12 at 16:10
  • @MarcB - Oh Ok , I Added it to .Htaccess but still nothing happened. – Yahoo Dec 14 '12 at 16:10
  • @didierc - This is the webpage, this data should be sent to the php on SAVE button http://caarve.com/highlight.php?page=en.wikipedia.org%2Fwiki%2FLydia_Zinovieva-Annibal – Yahoo Dec 14 '12 at 16:14
  • I don't think that `allow_url_include` makes a difference. – didierc Dec 14 '12 at 16:23
  • @didierc - I added the link to the live site, Can you have a look ? For small pages it works fine. – Yahoo Dec 14 '12 at 16:24

0 Answers0