Skip to content

[6.x] Improve file upload handling when max_files: 1#13962

Merged
jasonvarga merged 1 commit into6.xfrom
single-asset-upload
Feb 16, 2026
Merged

[6.x] Improve file upload handling when max_files: 1#13962
jasonvarga merged 1 commit into6.xfrom
single-asset-upload

Conversation

@duncanmcclean
Copy link
Member

When max_files: 1 and an asset is already selected, uploading a new asset (either via the "upload" button or drag & drop) now replaces the existing selection rather than adding to it.

This fixes an issue where replacing an inline image in Bard would result in both the old & new assets being selected, with only the old one actually visible in the Bard contents.

This fix also applies to the Assets fieldtype.

Fixes #13684

@jasonvarga jasonvarga merged commit a7df7a3 into 6.x Feb 16, 2026
12 checks passed
@jasonvarga jasonvarga deleted the single-asset-upload branch February 16, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bard: Replacing an inline image selects two images and keeps old one

2 participants