Skip to content

uploadFieldToInputSchema

uploadFieldToInputSchema(props): ZodType

Defined in: packages/core/src/fields/upload/inputSchema.ts:16

Generates the Zod input schema for an upload field.

The form stores a media document ID string. The upload component validates that the ID points to an existing media document at the UI level (by querying the media collection), but the Zod schema is a simple string check.

— Input schema generation options.

UploadField

— The resolved upload field definition.

ZodType

Zod schema for the form field value.