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

Add more information about the parser middleware configuration #7253

Merged
merged 2 commits into from
Jul 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/v3.x/concepts/middlewares.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,11 @@ The following middlewares cannot be disabled: responses, router, logger and boom
- `level` (string): Default log level. Default value: `debug`.
- `exposeInContext` (boolean): Expose logger in context so it can be used through `strapi.log.info(‘my log’)`. Default value: `true`.
- `requests` (boolean): Enable or disable requests logs. Default value: `false`.
- `parser`
- `parser` (See [koa-body](https://github.com/dlau/koa-body#options) for more information)
- `enabled`(boolean): Enable or disable parser. Default value: `true`.
- `multipart` (boolean): Enable or disable multipart bodies parsing. Default value: `true`.
- `jsonLimit` (string|integer): The byte (if integer) limit of the JSON body. Default value: `1mb`.
- `formLimit` (string|integer): The byte (if integer) limit of the form body. Default value: `56k`.

::: tip
The session doesn't work with `mongo` as a client. The package that we should use is broken for now.
Expand Down