How to view and modify incoming HTTP post data siz

2019-09-05 14:38发布

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条回答
干净又极端
2楼-- · 2019-09-05 15:20

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"
    }));
};
查看更多
登录 后发表回答