File and media libraries deduplication #880
Replies: 2 comments 1 reply
-
I get what you're doing here, but my experience has shown that this is not always a great idea. For example, if you have a particular image that is used across numerous pieces of content, and you delete that image - all content would be affected, which may not be ideal. I learnt this when we used a similar sort of filesystem mechanic on our SaaS platform - users would delete a file, and not realise they're affecting content elsewhere. |
Beta Was this translation helpful? Give feedback.
-
I just sent a PR to do it. Feature is, obviously, disabled by default. If user's behaviour is a concern, I believe it's not really hard to prevent files from being deleted if |
Beta Was this translation helpful? Give feedback.
-
A nice addition would be not to let people to upload duplicate image files to the libraries. Just compute and store a hash of the file during upload, and search for the hash before adding anything to it.
Maybe also add a configuration key to that too, because sometimes people might want to have duplicates instead.
Beta Was this translation helpful? Give feedback.
All reactions