graphql-python / graphql-python/graphene-django
File uploads not handled correctly when batch = True
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 760
- PR merge metrics
- No merged PRs in 30d
Description
What are the steps to reproduce this issue?
-------------------------------------------
1. add GraphQLView to url `FileUploadGraphQLView.as_view(batch=True)`
2. With whatever client lib, apollo-client in my case, upload file
What happens?
-------------
Server returns an error `Batch requests should receive a list, but received...`
What were you expecting to happen?
----------------------------------
The server should be able to treat multipart-formdata differently and by-pass batch processing heuristic
Any other comments?
-------------------
If this is deemed a viable use-case, I case create a PR for it.
What versions of software are you using?
----------------------------------------
graphene-django==2.9.0
graphene-file-upload==1.2.2
Contributor guide
Assessment
This issue has not been assessed yet.