How to upload a single file using the Upload scalar? #376
Unanswered
sanchesfrolov
asked this question in
Q&A
Replies: 2 comments
-
Bad POST multipart request: no part named "graphql" or "query" getting this while sending response through potman |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey sanchesfrolov. By any chance did you get a solution for this problem? I'm facing the same issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team !
I am pretty new with GraphQL and I need help with uploading a single file.
I was following the spec and related issues from the repo:
https://github.com/graphql-java-kickstart/graphql-java-tools/issues/240,
https://github.com/graphql-java-kickstart/graphql-java-tools/issues/288
I have following dependencies in my gradle script:
implementation "com.graphql-java-kickstart:graphql-kickstart-spring-boot-starter-webflux:6.0.1"
implementation "com.graphql-java-kickstart:graphql-kickstart-spring-boot-autoconfigure-tools:6.0.1"
and I added following implementation:
inside schema.graphql.
inside my configuration.
Inside mutation resolver
In order to check it I used Altair GraphQL Client(chrome-extension).
So when I post my request it eventually comes to > > >graphql.kickstart.spring.AbstractGraphQLController.graphqlPOST method
and
is thrown because the request has
as a content type, but the method waits for application/json or application/graphql
I think I missed something important in my implementation and just need more detail how I could set up all needed environment for file uploading.
Beta Was this translation helpful? Give feedback.
All reactions