Posting Image to wordpress through Apollo client and GraphQL

Posting Image to wordpress through Apollo client and GraphQL


0

I’m currently facing a challenge with React Native related to file uploads. I’m working with a WordPress backend that uses GraphQL, and for file uploading, I’m relying on the wp-graphql-upload plugin available on GitHub. This plugin requires the submission of actual file objects, but React Native inherently doesn’t support direct file submissions – it deals with blobs or URIs instead.

The core of my issue is bridging this gap: how to effectively upload files from a React Native app to a GraphQL server that expects a standard file format. I’ve posted a detailed description of my issue, including code snippets and error logs, on GitHub: https://github.com/dre1080/wp-graphql-upload/issues/15.

I’d greatly appreciate any insights, suggestions, or solutions you might have. If you’ve tackled similar challenges or know how to configure React Native to work seamlessly with this GraphQL setup, your guidance would be invaluable.

New contributor

Bryar Ghafur Ahmad is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *