You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a mini-project to learn GraphQL, using GraphQL, Strawberry, and FastAPI. I'm trying to upload an image using a mutation, but I'm getting the following error:
{
"detail": "Missing boundary in multipart."
}
I searched for solutions, and ChatGPT suggested replacing the Content-Type header with:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on a mini-project to learn GraphQL, using GraphQL, Strawberry, and FastAPI. I'm trying to upload an image using a mutation, but I'm getting the following error:
I searched for solutions, and ChatGPT suggested replacing the
Content-Type
header with:However, when I try that, I get another error:
I'm using Altair as my GraphQL client because GraphiQL does not support file uploads.


Here is my
main.py
:Here is my
graphql/mutation.py
:I would really appreciate any help in understanding why the multipart upload isn't working. Any insights or fixes would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions