-
Notifications
You must be signed in to change notification settings - Fork 412
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
Handling streaming upload with multipart-form data fails with payloads greater than ~7KB #2851
Labels
Comments
/bounty $250 |
💎 $250 bounty • ZIOSteps to solve:
Additional opportunities:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt #2851 Options |
💡 @kyri-petrou submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
🎉🎈 @kyri-petrou has been awarded $250! 🎈🎊 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When a request with a form field of type 'file' is processed using a StreamingForm, payloads greater than ~7Kb fail.
To Reproduce
Steps to reproduce the behaviour:
sbt test
Expected behaviour
The code include two different implementation of the code handling the requests, named
data
andpath
(matching the two paths where the code is bound to).The
data
implementation usesStreamingForm
values all around, whilepath
writes down the payload into a temporary file and then uses the content of this temporary file instead of using directly the request payload content.Some more details are reported into the sample project README file.
Desktop:
The text was updated successfully, but these errors were encountered: