- Issue created by @EthanT
The file usage service isn't being called when the file is replaced, and this results in file_usage counts to get out of sync.
If we save the parent media entity on file replace, the service is called and the count remains in sync. We could call the service directly and forgo the media save, but I think it's easier / safer to save the parent entity.
Active
3.0
Code