softwaremill / softwaremill/tapir

Is there a simple way to limit upload body size

Open
#2,596 2 comments 0 reactions 0 assignees View on GitHub

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:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.