payload
payload copied to clipboard
Adding a custom upload component to the edit view does not work
Describe the Bug
CustomUploadFieldCollection
in the payload test
folder attempts to render a custom upload component but it does not work.
It looks like admin.components.edit.Upload
exists in the payload types but it does not exist in the payload docs.
If I render the same custom upload component at admin.components.edit.SaveButton
it works as expected.
If I add Upload
in the same format as the others in renderDocumentSlots
it will work, however I'm not across the codebase enough to know if that's the appropriate fix.
Link to the code that reproduces this issue
https://github.com/payloadcms/payload/tree/main/test/uploads
Reproduction Steps
- Run the
uploads
test in dev mode. - Navigate to
Custom Upload Fields
collection. - Custom upload component is not used.
Which area(s) are affected? (Select all that apply)
area: core