-
Notifications
You must be signed in to change notification settings - Fork 139
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
File Upload #33
Comments
|
@michaelkuty can you make it work with Apollo? I got "Must provide query string." error when trying to send |
In apollo you must use something like middleware or something else.. |
hm, have you actually worked on it? I'm using |
Ok, just managed to get it to work with Apollo. The problem lies with incorrect handling of the multipart-encoded request, here: https://github.com/graphql-python/flask-graphql/blob/master/flask_graphql/graphqlview.py#L126-L127 I sub-classed the GraphQLView to properly handle https://gist.github.com/rshk/97fd7b444e48c60218addb2b64897572 This will work with the version of I can open a PR with the changes (I have unit tests covering that |
Similar to https://github.com/lmcgartland/graphene-file-upload/blob/master/graphene_file_upload/__init__.py |
See #51 |
I'm working on an example repo and was wondering, what would be the simplest way to implement that? This is what I tried without GraphQL:
This is what I used in Node.js, would love to do something like that for Flask in Python.
If it's not supported by flask-graphql I'd be happy to work on a pull request. Also, how would you test this without a browser, using Graphiql, Postman or something like that?
The text was updated successfully, but these errors were encountered: