How do you send large amount of data using POST method?
I heard that post method default is 8M now what if you exceed that size? How would you send a plain text to t
Upload the file, as you'll probably get time outs if there are interruptions.
Are you sending to a PHP script? If so you may need to increase upload size in php.ini
Search for upload_max_filesize
A good answer by David:
The url portion of a request (GET and POST) can be limited by both the browser and the server - generally the safe size is 2KB as there are almost no browsers or servers that use a smaller limit.
The body of a request (POST) is normally* limited by the server on a byte size basis in order to prevent a type of DoS attack (note that this means character escaping can increase the byte size of the body). The most common server setting is 10MB, though all popular servers allow this to be increased or decreased via a setting file or panel.
*Some exceptions exist with older cell phone or other small device browsers - in those cases it is more a function of heap space reserved for this purpose on the device then anything else.
What is the size limit of a post request?
NOTE: 2MB of data by URL means 2097152 Char in one request.
Also if you want to send more data you can use multipal ajax request
If you have access to the ini.php change the value
post_max_size
to
20M
from 8M you will be able to achieve what you want