payloadcms / payloadcms/payload
Field overrides issues with new upload field in Payload Form Builder Plugin
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 44.8k
- Forks
- 4.2k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 53
Description
The documentation for the Form Builder Plugin suggests that it's possible to override or extend any existing field. However, the new upload field, introduced in version 3.84.0, seems to work differently in this regard.
This does not work for upload, but it works for the other fields:
// payload.config.ts
import { fields } from '@payloadcms/plugin-form-builder'
formBuilderPlugin({
// ...
fields: {
upload: {
...fields.upload,
labels: {
singular: 'Custom Upload Field',
plural: 'Custom Upload Fields',
},
},
},
})
A suggestion is to update the documentation to include guidance on overriding or extending the upload field, as it appears to deviate from the rest.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.