Hello, using the graphql api I make a request with the productUpdateMedia mutation, I can update alt and source of the image with it’s mediaId, I can see visually that the image changes, but before updating the image’s url I add a timetamp to the image’s name → before: “image.jpg”, after: “image_timestamp.jpg”, the name is in the url so I would expect shopify to take it as it’s name but when I look in the admin or make a request with product->media query The name stays “image.jpg”
what i would like to see in shopify: ado_100338_4_1697100005448.jpg
what i have: ado_100338_4.jpg
is it too long and shopify is truncating it? Is there a way to force to have the exact name? I really need the timestamp in the name, it would simplify a lot of things.
When you upload an image to Shopify, the filename is automatically generated by Shopify’s system based on the original filename at the time of upload. Any changes to the filename in the URL after the media object has been created will not be reflected in the filename stored in Shopify’s database.
Filenames can sometimes be truncated due to the inclusion of special characters or spaces that are not supported in URLs. Would it be possible to try uploading the image without underscores in the title, to see if that’s causing the truncation?
I don’t think the underscores are a problem as you can see the original filename has underscores already and visible in the admin, so if a filename can’t be changed by changing the url, the solution would be to delete and reupload the image? is there another way?