softwaremill / softwaremill/tapir
Is there a simple way to limit upload body size
Nobody has claimed this yet.
- Dominant language
- Scala
- Stars
- 1.5k
- Forks
- 468
- Avg merge
- 5h 37m
- Merged PRs (30d)
- 34
Description
I currently have an endpoint taking an input of type multipartBody for allowing my user to upload a file. But I would like to limit the max size in a way that my server cut the request before downloading more.
I found the following information:
- https://gitter.im/softwaremill/tapir?at=5fea4780c746c6431ce049a0
- https://github.com/softwaremill/tapir/pull/915
But there are a bit outdated. Is there an easy way to do that today? If not do you think contributing such a feature would be easy?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the multipartBody upload behavior and the outdated discussion and pull request linked in the issue. Determine which current server integrations can reject oversized requests before downloading them, then define the supported configuration and verify the limit across the relevant server behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100