Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete referenced images if an entry is deleted #683

Open
Fasse opened this issue Nov 25, 2017 · 1 comment
Open

Delete referenced images if an entry is deleted #683

Fasse opened this issue Nov 25, 2017 · 1 comment

Comments

@Fasse
Copy link
Member

Fasse commented Nov 25, 2017

If we delete an entry where users could upload with the ckeditor an image than we should scan the description and also delete the image from the file system.

view forum entry https://www.admidio.org/forum/viewtopic.php?f=20&t=7522#p27020 for a script that do this job in general for the weblinks module

@Fasse Fasse added this to the Future milestone Nov 25, 2017
@JMS-S
Copy link

JMS-S commented Jan 21, 2018

Beware that if a user in an entry has inserted an image - and then simply delete this image again then the image is no more in the entry - but it is still in the file system.
It is fine ( and needed ) to have a routine that before deletion of the entry also removes the files from the file system, but if the user has deleted one or more images in the entry/post then these files will still be in the filesystem.
It is these files the script takes care of.
If the script is not used, then there will by time come more and more orphaned images.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants