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 associated thumbnail image when article is deleted (server-side) #2

Open
happychuks opened this issue Aug 1, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request model model override

Comments

@happychuks
Copy link
Collaborator

When an article is deleted, the associated thumbnail image is not removed from the file system. This can lead to orphaned images and unnecessary storage usage.

thumbnail images are saved in the media directory while in-content images are saved in the media/images directory

Expected behavior:
When an article is deleted, the associated thumbnail image should also be deleted from the file system.

Steps to reproduce:

  • Create a new article with a thumbnail image.
  • Delete the article.
  • Verify that the thumbnail image still exists in the file system.
@happychuks happychuks added bug Something isn't working enhancement New feature or request model model override labels Aug 1, 2024
@happychuks happychuks changed the title Delete associated thumbnail image when article is deleted Delete associated thumbnail image when article is deleted (server-side) Aug 1, 2024
losndu added a commit that referenced this issue Aug 21, 2024
losndu added a commit that referenced this issue Aug 21, 2024
Merge pull request #2 from 2077-Collective/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request model model override
Projects
None yet
Development

No branches or pull requests

1 participant