Client side Optimised and Original Uploads: How can I get the ID of a given image?

If I need to delete or modify a certain image, for example right to be forgotten, then I need to be able to modify/delete/replace an image in the database.

I have nothing but a sea of IDs
image

How would I get the optimised ID of an image? for example, the ids I see in this post as:

image

Can you open the image in a new tab, and look at the asset id in the address bar?

Eg.

https://d11a6trkgmumsb.cloudfront.net/original/3X/0/c/0c3f4821b07040112f2cf946ca6206620989ef40.png

1 Like

Thanks for the pointer. Interestingly though when I take th URL:
image
And I copy the image as a buckup
image

and then delete the image
image

I can still see it on the web page. I’m going to rebuild discourse and see what happens but it’s wierd to me it can still deliver the image


Edit

Cancel that, when I impersonate a user in a different browser the image is gone. I assume chrome has a temp copy which is why I can still see it. Thankfully the image has been removed successfully, and the forum is still in one piece! :slight_smile:

image

And if I add a new image with the previous image ID:

Then the image is restored in the browser which could not see it previously:

image

Perfect :smiley:

1 Like