You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a polymorphic upload field with hasMany: true, selecting existing uploads via the checkbox bulk-selection flow can save the selected document IDs with the wrong relationTo.
Selecting a single row by clicking the first column works correctly. The issue only appears when using the checkbox bulk-select path, even if only one item is selected.
Describe the Bug
When using a polymorphic upload field with
hasMany: true, selecting existing uploads via the checkbox bulk-selection flow can save the selected document IDs with the wrongrelationTo.Selecting a single row by clicking the first column works correctly. The issue only appears when using the checkbox bulk-select path, even if only one item is selected.
Link to the code that reproduces this issue
https://github.com/damnsamn/blank-payload-project/tree/repro/polymorphic-upload-bulk-select
Reproduction Steps
imagesandvideos.See video:
Kapture.2026-05-20.at.16.40.44.mp4
Expected behavior
Selected documents should be saved with the collection selected in the drawer dropdown, e.g.
Actual behavior
Selected documents are saved with the first configured upload collection as relationTo, e.g.
This creates broken relationships because the ID belongs to the second collection, not the first.
Which area(s) are affected?
area: core
Environment Info