Having trouble uploading a video under a product in Shopify

sriram-shop360
New Member
3 0 0

Hi,

I'm trying to upload a video for a product in Shopify by following the below order,

  1. stagedUploadsCreate mutation -> Creating a URL for the video with required filesize,
    • It works
  2. Uploading the asset
    • With postman (tool) - 
      • a multipart form works with the video file selected.
    • With the form-data library in the node (programmatically) -
      • It's not working with the file and its location
  3. Linking the asset with the respective product.
    • It works

Please help us in solving the above issue. Thanks in advance.

Reply 1 (1)
csam
Shopify Staff
Shopify Staff
267 40 43

Hi @sriram-shop360 

When it's not working, are you receiving any error messages? Could you please provide the x-request-id response header value? We're not able to offer in depth troubleshooting, but I can check to see if there's anything going wrong at our end. 

Thanks!

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog