Skip to content

[6.x] Keep only one uploaded asset in a link field - #15756

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
mynetx:fix/assets-upload-max-files
Oct 30, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
mynetx:fix/assets-upload-max-files

Conversation

@mynetx

@mynetx mynetx commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Uploading several files at once to a link field set to Asset showed all of them in the field, but saving quietly kept only the first one, without any warning.

Now each finished upload replaces the asset in a link field, so it only ever holds one and what you see is what gets saved. Regular assets fields with max_files: 1 are unchanged and still flag extra uploads through validation.

Before

12033-before

After

12033-after

Fixes #12033

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jasonvarga
jasonvarga merged commit 4fa5634 into statamic:6.x Oct 30, 2026
62 checks passed
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.

Link fieldtype allows multiple assets per drag and drop

2 participants