Skip to content

Conversation

Maffooch
Copy link
Contributor

The current implementation creates orphaned file upload objects that are never cleaned up when their parents are deleted. We should be deleting the FileUpload objects when their associated objects are deleted, and cleaning the media directory when applicable. This PR adds functionality for this as well as a one time migration to clean up all existing orphaned files

@Maffooch Maffooch requested a review from mtesauro as a code owner August 21, 2025 22:53
@github-actions github-actions bot added the New Migration Adding a new migration file. Take care when merging. label Aug 21, 2025
Copy link
Contributor

@mtesauro mtesauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@valentijnscholten valentijnscholten added this to the 2.50.0 milestone Aug 24, 2025
@Maffooch Maffooch merged commit 941dd6c into dev Aug 26, 2025
88 checks passed
@Maffooch Maffooch deleted the file-upload-cleanup branch August 26, 2025 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New Migration Adding a new migration file. Take care when merging.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants