Node js request entity too large with multer upload

后端 未结 2 988
天涯浪人
天涯浪人 2021-02-09 18:20

well I\'ve tried different ways to upload a 200k file increased the limit changed parameters, did everything I changed the multer. Fucei everything I knew what I read in the sta

2条回答
  •  情话喂你
    2021-02-09 19:00

    In my case, after setting the limit @ node.js (webapp) var express = require('express'); var app = express(); var bodyParser = require('body-parser'); app.use(bodyParser.json({limit:'50mb'})); app.use(bodyParser.urlencoded({extended:true, limit:'50mb'}));

    I also (most important) had to set up the limit @ nginx (webapp reverse proxy) # Max upload size. client_max_body_size 50M;

提交回复
热议问题