I need to receive big amount of data via ajax response and seems like post_max_size on live server is causing trouble. On local test server I have no limits or issues. The data is currently 2.7mb and it could get bigger. Problem is that the script is going to be used by multiple users and I cant force anyone to increase the post_max_size.
The script is fairly simple
$.ajax({
type: "post",
dataType: "json",
url: ajaxurl,
data: {
'action': 'get_data',
},
success: function(response, status, xhr) {
if (response.data.html !== null) {
//process html 2.7MB
}
}
});
the reason why data is so big is json validation and html data must have special chars , so the response is almost 3 times of the size than what the actual normal processed HTML would be. This is just a small example of it
</div>ttt</div>tt</div>tt
right now I have no idea how to approach this. To brake the response in chunks or ? If you have any suggestion have at it please.
