payloadcms / payloadcms/payload

Field overrides issues with new upload field in Payload Form Builder Plugin

Open
#16,394 0 comments 0 reactions 1 assignee View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.