Feature #15747
closed
on content delete, also delete the attached content in upload/pics folder
Added by old_chris over 18 years ago.
Updated about 6 years ago.
Category:
Backend User Interface
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)
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
Sorry, I am just a simple end-user, no skills in php or alike.
Okay, I don't know when I have time to work on that issue, let's see.
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
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.
There's a task in lowlevel CLI tools, which can delete unreferenced files, isn't it?
TYPO3 already provides a solution for the problem.
Closed after a long time without feedback.
- Status changed from Resolved to Closed
Also available in: Atom
PDF