How to view and modify incoming HTTP post data size limits

171 views Asked by At

I am using Iron-Router with my Meteor app to accept incoming HTTP requests. How do I know what the POST data size limits are? How do I set the limit for it?

1

There are 1 answers

1
kaoskeya On

I'm not sure about how to check the limits, but you can set limits with the following code:

Router.configureBodyParsers = function() {
    Router.onBeforeAction(Iron.Router.bodyParser.urlencoded({
        extended : true,
        limit : "8mb"
    }));
};