strawberry icon indicating copy to clipboard operation
strawberry copied to clipboard

Support chunked transfers (file upload)

Open MaximeDetne opened this issue 4 months ago • 1 comments

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.
Fund with Polar

MaximeDetne avatar Oct 06 '24 16:10 MaximeDetne