gin文件上传到服务器报错:413

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010918487/article/details/83688006
<html>
    <head>
        <title>413 Request Entity Too Large</title>
    </head>
    <body bgcolor="white">
        <center>
            <h1>413 Request Entity Too Large</h1>
        </center>
        <hr>
        <center>nginx/1.13.12</center>
    </body>
</html>

在网上百度了,是由于nginx有文件大小限制,默认是20M。

测试同事测试的时候上传的文件超过了20M就报了这个错。

要么修改nginx配置默认的文件大小,要么上传小一点的文件

猜你喜欢

转载自blog.csdn.net/u010918487/article/details/83688006