问题
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:
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"
}));
};
来源:https://stackoverflow.com/questions/30749930/how-to-view-and-modify-incoming-http-post-data-size-limits