payload icon indicating copy to clipboard operation
payload copied to clipboard

Adding a custom upload component to the edit view does not work

Open rilrom opened this issue 3 months ago • 2 comments

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

  1. Run the uploads test in dev mode.
  2. Navigate to Custom Upload Fields collection.
  3. Custom upload component is not used.

Which area(s) are affected? (Select all that apply)

area: core

rilrom avatar Nov 28 '24 12:11 rilrom