i'm trying to post base64 encoded image via ajax then this this error:
The requested resource 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.
$.ajax({
url: '<?php echo site_url('post/saveCanvasImage') ?>',
type: 'POST',
data: {data:myImage},
dataType: "json",
success: function (data) {
console.log(data);
}
});