I have a node app running v0.10.33 with Restify module ^2.8.3
var app = restify.createServer();
app.use(restify.queryParser());
app.use(restify.bodyParser({
maxBodySize: 1, //TODO: This limit is not working at the moment.
uploadDir: './temp',
keepExtensions: true
}));
app.post('/users/profile/picture', function(req, res, next) {
res.end('Upload done!');
};
The upload of the file works but it does not respect the maxBodySize param. The rest of the params: keepExtensions, uploadDir, etc work well.
Why is the maxBodySize being ignored?