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

docs: add note about large file multipart uploads #2025

Merged
merged 4 commits into from
Jun 22, 2023

Conversation

wowkster
Copy link
Contributor

Motivation

When using the Multipart extractor in a project, I quickly ran into the problem of my requests failing due to the upload size being too large. To find a solution I had to google around to find that the default body limit is set to 2MB. I think that mentioning this in the documentation for the Multipart extractor would be beneficial and provide some clarity for those not familiar with DefaultBodyLimit or aware that it even exists.

Solution

The Multipart extractor is commonly used for file uploads, but it is not mentioned directly in the relevant documentation that these uploads are affected by the global request body limit. This pull request adds a note in the Multipart documentation that links to DefaultBodyLimit.

The Multipart extractor is commonly used for file uploads, but it is not
mentioned directly in the relevant documentation that these uploads are
affected by the global request body limit. This commit adds a note in
the Multipart documentation that links to DefaultBodyLimit.
@davidpdrsn davidpdrsn merged commit 8016e78 into tokio-rs:main Jun 22, 2023
@davidpdrsn davidpdrsn mentioned this pull request Jul 16, 2023
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

Successfully merging this pull request may close these issues.

2 participants