I'm looking to accomplish something similar. I have .pdf files in the site that need to be updated. These files are linked throughout text within the site. If a new file is uploaded, and the file names changes, is there an efficient way to find each instance of the first version and replace the url?
This needs to be added to shopify its a basis feature that is missing.
I am trying to upload a picture and then I directly link to that URL.
If I then wish to update that link I cannot so I would have to manually change 100s of links such as in the html description it must point to the link.
Is this going to be added basically an image replacement application maybe?
I need to do this too. I would like to switch out my "Shop" button with a different image, and it is found on a lot of my pages and blog posts.
The shopify uploaded file URL syntax is
https://cdn.shopify.com/s/files/<your unique account subfolders>/files/FILENAME.EXT?<some trailing numbers>
In my case, for example...
As long as you delete the file and re-upload it with the same file name (FILENAME.EXT above), the URL link will remain same. Just remember to ignore all the trailing numbers at the end of your file name. So, use just https://cdn.shopify.com/s/files/1/0777/3125/files/FILENAME.EXT to refer this file on the site (pages, templates etc.) or even outside (pdf link in email e.g.)