getgrav / getgrav/grav-plugin-admin

Unused files can remain on the server using the file field

Open
#1,497 0 comments 0 reactions 0 assignees View on GitHub
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.

![ezgif com-video-to-gif](https://user-images.githubusercontent.com/12197549/43776334-ca104840-9a4f-11e8-8890-f9dcb50b16cb.gif)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.