0
votes

I m trying to post 500K-100K lines from textarea and insert it in mysql table line by line.

But I'm getting error;

413 Request Entity too Large.

The request resource /action.php does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.

Additionally, a 413 Request Entity Too Large error was encountered while trying to use an ErrorDocument to handle the request.

1
error seems clear... 500k in a post is crazy, why not do a file upload? - user8011997
I had added file upload functionality also, which is working fine. - Suman Acoustics
You need to use POST method instead of GET - Anant Kumar Singh
@AlivetoDie I had used POST but dont know why the error is showing GET - Suman Acoustics
so if you have a file uplaod why do you need 500k in an textarea? - user8011997

1 Answers

0
votes

Apache length of the request line default limit is 8190, thats why you get this error when passing $_GET parameter. Use $_POST instead then you only need to handle script execution time and memory. By the way some old browsers like IE6 can handle only about 2000 request line length so increase it in apache configs won't help.