Skip to content

Single file field wrongly retains uploadName after new upload #1819

@Toutouwai

Description

@Toutouwai

Short description of the issue

Single file fields have a feature where existing data such as description, tags, etc, are retained after a new file is uploaded. This is useful in general (although maybe this should be configurable somehow in case there are scenarios where it's not wanted?)

But if the field contains a file that caused the uploadName property to be set from the original filename...

2023-09-25_134818

...and I then upload a different file which does not contain any disallowed characters that would cause the uploadName property to be set, then the previous uploadName is retained.

2023-09-25_135016

That doesn't seem correct to me.

Setup/Environment

  • ProcessWire version: 3.0.228

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions