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.
Parameters
Section titled “Parameters”— Input schema generation options.
— The resolved upload field definition.
Returns
Section titled “Returns”ZodType
Zod schema for the form field value.