digitalfabrik / lunes-app

The front end for the Lunes vocabulary trainer. Back end: https://github.com/digitalfabrik/lunes-cms
https://lunes.app
Apache License 2.0
23 stars 5 forks source link

LUN-528: Delete photo from file storage when deleted #950

Closed jira-to-github-migrator[bot] closed 12 months ago

jira-to-github-migrator[bot] commented 1 year ago

LeandraH - 11.7.2023, 14:54:54

We currently save photos to file storage when someones creates an own vocabulary item. If they edit the item later and delete the photo, we delete the reference to it in the app but don't delete the actual file. We should do that to not fill up a user's file storage.

Important detail: the photo should be deleted on saving the operation, not when the user taps to delete it. They might change their mind and just go back without saving, at that point the photo should stay where it is.

Environment: - Linked issues: