getgrav / getgrav/grav-plugin-admin
Unused files can remain on the server using the file field
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
When using the file field in admin blueprints, unused files can remain on the server, when clicking the cross/close button on the elements button panel. This can happen on any destination. When working on pages there usually is the pagemedia field available to remove those unwanted files, but when disabling the page media field or uploading to another directory, this problem seems to appear.

I really don't get the cross/close option in the elements toolbar in comparison to the delete option. I know it just removes it from the array that is returned by twig, but in my opinion a delete option would be enough.
When I'm writing a theme and don't want to see the pagemedia field but instead provide multiple file fields with multiple set to false for e.g. images in my layout, I still need to enable the pagemedia field, just for deleting unwanted files or duplicates when I accidentally click the cross/close button inside a file field.
Contributor guide
Assessment
This issue has not been assessed yet.