django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.76k stars 577 forks source link

Filer file delete on admin site does not delete the physical file on /media/filer_public_thumbnails/ folder #1200

Closed openHBP closed 2 years ago

openHBP commented 4 years ago

Connected as admin, when I delete a file on admin site, the file remains on the server...

ie: I've deleted slider2.jpg on admin site and the file remains on media/filer_public_thumbnails/filer_public/4e/c3/4ec30f72-18f1-4cc3-8cc9-b76021f65a62 with all subsampling files: ./slider2.jpg__16x16_q85_crop_subject_location-960,599_subsampling-2_upscale.jpg ./slider2.jpg__210x0_q85_subject_location-960,599_subsampling-2_upscale@2x.jpg ./slider2.jpg__64x64_q85_crop_subject_location-960,599_subsampling-2_upscale.jpg ./slider2.jpg__48x48_q85_crop_subject_location-960,599_subsampling-2_upscale.jpg ./slider2.jpg__32x32_q85_crop_subject_location-960,599_subsampling-2_upscale@2x.jpg ./slider2.jpg__48x48_q85_crop_subject_location-960,599_subsampling-2_upscale@2x.jpg ./slider2.jpg__64x64_q85_crop_subject_location-960,599_subsampling-2_upscale@2x.jpg ./slider2.jpg__210x0_q85_subject_location-960,599_subsampling-2_upscale.jpg ./slider2.jpg__32x32_q85_crop_subject_location-960,599_subsampling-2_upscale.jpg ./slider2.jpg__16x16_q85_crop_subject_location-960,599_subsampling-2_upscale@2x.jpg

Is it normal? Is it implemented?

I would have though of an automatic delete with pre post delete signals as specific django-cleanup package does for django.db.models.FileField and django.db.models.ImageField

Environment

Python==3.6.9 Django==3.0 django-cms==3.7.4 django-filer==1.7.1 django-polymorphic==2.1.2 Pillow==7.2.0 easy-thumbnails==2.7 django-mptt==0.11.0

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This will now be closed due to inactivity, but feel free to reopen it.