Hi @kunio I’m running into the same issue, can you please help?
https://community.shopify.com/c/graphql-basics-and/image-file-upload-through-graphql-api-processing-error/td-p/2187722
Topic summary
Core Issue:
Users are experiencing intermittent failures when uploading product images to Shopify via GraphQL API. Large files consistently fail, while smaller files succeed sporadically.
Technical Approach:
The workflow involves three steps:
- Creating a staged upload target
- Uploading files to the staged target via Axios
- Attaching the resource URL to the product creation mutation
Code Implementation:
The original poster shared JavaScript code using GraphQL mutations (stagedUploadsCreate and productCreate) with Axios for file uploads. They suspect the issue lies in the upload process rather than the product creation mutation, since successful uploads work correctly.
Workaround Found:
Uploading images to Google Cloud Storage and using public URLs worked successfully, suggesting either:
- API/code issues with Shopify’s staged upload process
- Resource URLs generated by Shopify may not be publicly accessible
Status:
Multiple users report experiencing the same problem. The discussion remains open with no definitive solution provided—participants are seeking help and updates from others who may have resolved this issue.