Project send large files to the Node service, service error: PayloadTooLargeError: request entity too large
2. Cause / solution:
nodejs as a server, in the transmission of content or upload a file, the default size is 100kb, then, we need to modify the system limits. We call server.js interfaces and corresponding method, adding the corresponding parameter, like this:
app.use(bodyParser.json({limit : “2100000kb”}));
// size of the reception extended to 2100000kb