Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request entity too large #375

Open
xauxatz opened this issue May 2, 2017 · 0 comments
Open

Request entity too large #375

xauxatz opened this issue May 2, 2017 · 0 comments

Comments

@xauxatz
Copy link

xauxatz commented May 2, 2017

This isn't really a meteorkitchen specific problem, but rather a problem with iron-router.
See here, for instance: iron-meteor/iron-router#710

The solution seems to be to override Router.configureBodyParsers in the following way:

Router.configureBodyParsers = function() {
    Router.onBeforeAction(Iron.Router.bodyParser.urlencoded({
        extended : true,
        limit : '500mb'
    }), {where: 'server'});
};

I've experimented with placing this code various places in the project but it doesn't work.

Could it be that meteorkitchen somehow overrides this code somewhere out of my control?
Or does anyone know of another solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant