简体   繁体   中英

Request Entity Too Large

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);
    }
});

Looks like a miss config of:

client_max_body_size (nginx)

or

post_max_size (PHP)

In any case, im just guessing, please give us more info :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM