Remix
Remix
remix/data-schema/form-data · FunctionView Source

files

Summary

Creates a schema entry for repeated file fields from FormData.

Signature

function files<schema extends Schema<any, any>>(
  schema: schema,
  options: FormDataFilesOptions,
): FormDataEntrySchema<InferOutput<schema>>;

Parameters

schema

options

Parsing options for the field.

Returns

A file schema entry for use with object().