Unable to POST large non-binary data via AJAX, receiving a blank result in PHP with an error indicating an undefined $_POST element.
// JavaScript $.ajax({ data: {'data_string': string} }); // PHP $_POST['data_string']
A comprehensive investigation of potential limits that may be hindering the POST process is necessary to resolve this issue.
PHP: Several parameters influence POST data handling:
Other Factors:
To resolve this issue, check each of these limiting parameters within Apache, PHP, and other involved components. Ensure they exceed the size of the POST data being transmitted.
If the built-in Apache limit is exceeded, consider breaking the large data into smaller chunks and transmitting them in stages.
The above is the detailed content of Why Can\'t I POST Large Non-Binary Data via AJAX?. For more information, please follow other related articles on the PHP Chinese website!