GraphQL upload base64 image

Hi there,

I am trying to write a program to upload a list of products. I saw that the Admin Rest API allows to use $image->attachment to upload image. How does this can be achieved in GraphQL? I need this function is because I need to resize each image before sending to Shopify.

Thanks

Hey @maxwkf

The GraphQL process is a little different -you generate a temporary URL which you can send image data to and then you add the image to the product.

Here’s a walkthrough: https://shopify.dev/docs/apps/online-store/media/products

Thanks for helping.

After I gone throught the process, I was trapped on Image: Media processing failed.

https://community.shopify.com/post/1769696

Can you walk me through the steps + responses and show where it fails?

Thanks for helping out.

However, I have just run into another error while doing the GraphiQL

bulkOperationRunMutation today. I used this yesterday and working fine.

It runs into 500 Internal Server Error and I dont know how to debug it.

Hi, I have just captured a new error message. Refer to Post https://community.shopify.com/topic/2129434

Any idea on how to resolve that?

Thanks