strawberry
strawberry copied to clipboard
Support chunked transfers (file upload)
Describe the Bug
Strawberry-django does not seem to support chunked transfers when using multipart uploads.
Thanks to @enisdanjo (https://github.com/ardatan/graphql-mesh/issues/7701) :
You can reproduce the issue by appending Transfer-Encoding: chunked to the upload request.
curl localhost:8000 \ -H 'Transfer-Encoding: chunked' \ -F operations='{ "query": "mutation ($file: Upload!) { uploadFile(file: $file) { id } }", "variables": { "file": null } }' \ -F map='{ "0": ["variables.file"] }' \ -F [email protected]
This is problematic when using Strawberry after a proxy or a gateway that cannot calculate the content-length
.
Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.