Need to attach internal timestamps to product images uploaded via the Admin API to decide when to update images. Current workaround stores a JSON map in a product-level metafield, but it feels misaligned since the data isn’t on the image itself.
Key constraint: Shopify does not support metafields directly on images/media, so metadata cannot be attached to image objects.
Suggested workarounds: embed the timestamp in image alt text or in the filename. An example API payload for setting alt text was provided, and using a timestamped filename was also proposed for update checks.
Limitation: Alt text cannot be used because it’s surfaced on the storefront. The original poster indicates they’ll likely continue using the product metafield JSON approach despite it being cumbersome.
Outcome/status: No native solution identified; no platform change. A participant invited the poster to continue the discussion via email. The thread remains open with no definitive resolution.
Summarized with AI on December 16.
AI used: gpt-5.
I have a use case where I need to associated extra data to an image I upload through the admin api. The use case is that I have an internal time stamp so I know when the image was updated internally. Ideally, when uploading the image, I would like to add that data to the image, the timestamp for example (I could get away with the originalSource). If I have something from my internal system, then I know if I should update the image or not by comparing the dates
Currently I am using a metafield on the product to store, i json, the images that I last updated, but this doesn’t feel right as data (metafield) is not attached to the image
Using metafields on the image/media would make sense to me, but I can’t see that being available. Am I missing something?
Thanks for this. We use the alt text on the front end of the site, so that wont work. Looks like the approach I do now, where I store the data in a metafield at the project level (as json) reference that, is probably the most flexible way, if cumbersome