#6708 (Deleting an upload entry should delete the file as well.)
by Sharif Mehedi · in Developers
Kokkuvõte
Children
Kommentaarid
- 6 kuud, 3 nädalat ago by Luc Saffre about #6708 (Deleting an upload entry should delete the file as well.) : But it makes sense to delete the file immediately when a user deletes an upload entry. I see two ways to do that: (a) override the uploads.Upload.delete_instance() method or (b) connect a signal listener to the pre_ui_delete signal. I personally prefer (a) over (b) because signal listeners can't get...
- 6 kuud, 3 nädalat ago by Luc Saffre about #6708 (Deleting an upload entry should delete the file as well.) : That's maybe true. But note that we have already UploadsFolderChecker who deletes orphaned files a little bit later. More precisely it does so only if remove_orphaned_files is True. Should we change the default value for remove_orphaned_files from False to True? Or at least set it in the default set...
- 6 kuud, 3 nädalat ago by Sharif Mehedi about #6708 (Deleting an upload entry should delete the file as well.) : Created new Ticket #6708 (Deleting an upload entry should delete the file as well.).