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

question: Is there a way to override this body size limit? #624

Open
brightgarden opened this issue Jun 29, 2023 · 2 comments
Open

question: Is there a way to override this body size limit? #624

brightgarden opened this issue Jun 29, 2023 · 2 comments
Labels
enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low

Comments

@brightgarden
Copy link

.use(bodyParser.json({ limit: '10000kb' }))

I'd like to be able to accept a larger payload, and am willing to submit a PR to let this be configurable with a default value.

Thanks!

@rgwozdz
Copy link
Member

rgwozdz commented Jun 29, 2023

Hello @brightgarden. Yes, just have the value be set as an option (make sure there is a default fallback value). Then send it in as an Koop instance option:

function Koop (options) {
.

Thanks!

@rgwozdz rgwozdz added enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low labels Sep 13, 2023
@brightgarden
Copy link
Author

Looks like this was done in this commit: c1c2ed4. I can still make a PR that updates the documentation!

brightgarden pushed a commit to brightgarden/koop that referenced this issue Dec 21, 2024
Added documentation for bodyParserLimit (or POST body maximum size). And added unit tests for both
the default value and override.
brightgarden pushed a commit to brightgarden/koop that referenced this issue Dec 21, 2024
Added documentation for koop option `bodyParserLimit` (for POST maximum body size). Also added some
unit tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Good first issue Good for newcomers / first-timers LOE: low Level Of Effort: low
Projects
None yet
Development

No branches or pull requests

2 participants