toolmark-monorepo / @toolmark/core / FileFieldSpec
Interface: FileFieldSpec
Defined in: packages/core/src/files.ts:44
Limits of one form file field (createFormTools({ files: { [path]: spec } })). A field limit can only narrow the registry's files.maxBytes.
Properties
accept?
optionalaccept?:string[]
Defined in: packages/core/src/files.ts:46
Accepted MIME types (image/png) or families (image/*); absent or empty accepts any type.
maxBytes?
optionalmaxBytes?:number
Defined in: packages/core/src/files.ts:48
Size limit in bytes (the effective limit is the smaller of this and files.maxBytes).
maxFiles?
optionalmaxFiles?:number
Defined in: packages/core/src/files.ts:56
Most references a multiple field accepts in one fill (a positive integer ≤ 100, default DEFAULT_MAX_FILES); advertised as maxItems. More is invalid ("Too many files") before anything is resolved or fetched.
multiple?
optionalmultiple?:boolean
Defined in: packages/core/src/files.ts:50
The field holds a list of files (File[], given as an array of references).