Skip to main content

Function: processFile()

processFile(_schema, _ctx, field, _params): void

Defined in: packages/core/src/processors/file.ts:16

Process z.file() — renders as a FileInput component. No constraints are extracted. The field renderer sets valueAsFile: true on registration so RHF stores a File object rather than the raw input value.

Parameters​

_schema​

$ZodType

The file schema (unused; no bag constraints for files).

_ctx​

FormProcessorContext

The walker context (unused for file processing).

field​

FormField

The base FormField to mutate in-place.

_params​

ProcessParams

Unused; included for processor signature conformance.

Returns​

void