Replies: 1 comment 3 replies
-
I don't think we need a React example. You can just use an example that uploads files with any GraphQL Client. There is nothing special for Yoga. Yoga implements the same spec. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
My setup is as follows:
GraphQL
Express
I'm trying to make the following mutation work:
I use it from my React component as follows:
The problem I'm facing is that the FE only sends the file path, and not the complete file. As a result, I'm unable to call
file.arrayBuffer()
in the resolver.The CURL example in the docs uses a multi-part form:
Could you please provide a relevant React example as well? I've been stuck for a few hours.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions