Feature #15747
closedon content delete, also delete the attached content in upload/pics folder
0%
Description
If one deletes a CE 'images' also remove the containing images from the uploads/pics folder.
Same for files uploaded by extensions and stored in the uploads folder
(issue imported from #M2729)
Updated by Sebastian Kurfuerst over 18 years ago
Hi chris,
do you have time to look into this or are you able to do this task and provide a patch? (If not, it is no problem of course)
Greets, Sebastian
Updated by old_chris over 18 years ago
Sorry, I am just a simple end-user, no skills in php or alike.
Updated by Sebastian Kurfuerst over 18 years ago
Okay, I don't know when I have time to work on that issue, let's see.
Updated by old_chris over 18 years ago
maybe a better way would be do an initial 'scan' of the upload folder (and it subs) for unused images or files. See which ones are not used (or attached to CE). One can asume these non attached items are not part of the website, so they can be deleted.
This way you can get rid of old files, and copies of used files. (I guess our upload/pics folder consists of 80% of non used pictures.) It's a wast of space, as i cannot really say for sure which ones are the obsolete ones.
Would be great if you can the time to find a solution for this. Succes
Updated by Chris topher over 14 years ago
I would not advise to delete the uploaded media files automatically with the CE. Think of the recycler with which you could bring back deleted elements.
This would no longer work sensefully, if the contained pictures etc. already were deleted.
Updated by Steffen Gebert over 14 years ago
There's a task in lowlevel CLI tools, which can delete unreferenced files, isn't it?
Updated by Chris topher over 14 years ago
TYPO3 already provides a solution for the problem.
Closed after a long time without feedback.