Skip to content

[5.x]: Replace file option on an entry is confusing #15498

@lexisother

Description

@lexisother

What happened?

Description

The naming of the "Replace file" option is a bit confusing. One of our clients just submitted a report that when they tried to use this option to replace the file on an entry, it'd get replaced on another entry as well. Unbeknownst to them, that's exactly the point of the feature, but it's weird for it to be placed right there in the entry editing view. Especially when you consider the "Remove" button right below it doesn't actually remove the entire asset, just its use within that entry.

Maybe something can be done about this? If I had to give my own view on this, I wouldn't even have that button there to begin with, realistically it should only be in the Assets view. I should note that the Craft language is set to Dutch in our client's case, but in English I can see the same confusion happening.

Steps to reproduce

  1. Have an entry with an Image field
  2. Upload an image to the field
  3. Click the three dots on the image and click "Replace file"
  4. Select a new image and submit it

Expected behavior

Judging by the text on the button I'd expect the image to be replaced on that entry only.

Actual behavior

The entire asset is replaced, on every field that uses it.

Craft CMS version

5.2.7

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions