platform icon indicating copy to clipboard operation
platform copied to clipboard

Cached downsized images not removed from the storage

Open aonnikov opened this issue 2 years ago • 3 comments

It appears that we don’t remove downsized images when deleting the main image. I still can see dangling files with %size% suffix.

It appears that we don’t remove downsized images when deleting the main image. I still can see dangling files with %size% suffix.

aonnikov avatar Dec 13 '23 07:12 aonnikov

As I remember it. was a trigger to remove them.

haiodo avatar Dec 13 '23 07:12 haiodo

does not work as expected, I’ve just tried - have an image and two small images (64px and 256px), after the fullsize image is deleted, I still can see small images in minio.

aonnikov avatar Dec 13 '23 08:12 aonnikov

Prefixes work only when a proper delimiter is used, for JS minio client delimiter is hardcoded to / https://github.com/minio/minio-js/blob/b109cdb0ce228b134620433fe3d8f41ac9be2d4d/src/minio.js#L365

But if we start using / as a delimiter, we won’t be able to access the original image - the prefix is a folder, and can’t be file.

aonnikov avatar Dec 13 '23 08:12 aonnikov