Skip to content

ImageField: image not deleted #7763

Description

@wilddom

When an image is deleted (ImageField), the database entry is set to an empty string and the file remains. What does work, however, is replacing an image; in that case, the previous file is deleted.

In FileUploadState $deletedFiles is correctly set, but $delete is false, that seems to be the reason why the file isn't deleted in processUploadedFiles().

EasyAdmin v5.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions