Open KhaledBousrih opened 1 year ago
Currently, (v 1.52.0) When an instance of a model containing a file field is deleted, the latest file is also deleted from the storage.
However, when an instance is updated with a new file, the old file still exist on the storage.
We need to delete the old file locally, when updating an instance with a new one.
See this library : https://github.com/un1t/django-cleanup
Currently, (v 1.52.0) When an instance of a model containing a file field is deleted, the latest file is also deleted from the storage.
However, when an instance is updated with a new file, the old file still exist on the storage.
We need to delete the old file locally, when updating an instance with a new one.