Skip to content

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

@simonthesupplier

Description

@simonthesupplier

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions