I am encountering a 413 (Request Entity too large) error when making a request to a Sails Js app (v0.12).
Despite my attempts to raise the request limit in the bodyParser, I have not seen any changes take effect.
In config/http.js
, I included a customized bodyParser function utilizing skipper
to increase the limit.
bodyParser: (function() {
var opts = { limit: '50mb' };
var fn;
// Defaulting to the built-in bodyParser:
fn = require('skipper');
return fn(opts);
}),
How should I go about properly elevating the request limit in SailsJs?