Client-side geoptimaliseerde en originele uploads: Hoe kan ik de ID van een bepaalde afbeelding krijgen?

AI-generated summary

In a support thread titled ‘Client side Optimised and Original Uploads: How can I get the ID of a given image?’, Tris20 seeks to identify image IDs for managing content (e.g., deletion under ‘right to be forgotten’). JammyDodger suggests checking the asset ID in the image URL when opened in a new tab. Tris20 tests this by copying, deleting, and re-uploading an image with the same ID, observing that Chrome may cache the image temporarily — confirming deletion works when viewed from a different browser or incognito session. Surprisingly, re-uploading with the original ID restores the image visibly, which Tris20 finds reassuring, noting the forum remains stable. The thread concludes with a positive outcome, highlighting browser caching behavior and successful image management via ID reuse.

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

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:

image

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

Perfect :smiley: