Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Can I retrieve the image object (I need the image URL) if I have the image ID?
Here is some context.
I get this response from the createFile API call:
id: 'gid://shopify/MediaImage/30654432182435'
fileStatus: 'UPLOADED'
preview: { image: null }
I don't get any image information in the above response. Based on the status, the file is still being uploaded and needs to be in the Ready state to fetch the URL. Once that is done, I would like to retrieve the url but I can't seem to find the right method / approach to do so.
Any help would be appreciated.
Thank you!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025