FileOptions
FileOptions =
object
Defined in: packages/schema/src/files/file-options.ts:57
A file field’s settings, as the builder collects them.
Properties
Section titled “Properties”accept
Section titled “accept”accept:
string[]
Defined in: packages/schema/src/files/file-options.ts:59
The allowed types and type/* wildcards (.accept()); any type when empty.
derive?
Section titled “derive?”
optionalderive?:Record<string,FileProcessor>
Defined in: packages/schema/src/files/file-options.ts:65
The processors computing other fields from each upload, by field name (.derive()).
external?
Section titled “external?”
optionalexternal?:true
Defined in: packages/schema/src/files/file-options.ts:73
Whether a value may also be an https URL of a file elsewhere (.externalUrls()).
maxSize
Section titled “maxSize”maxSize:
number
Defined in: packages/schema/src/files/file-options.ts:61
The largest upload in bytes (.maxSize()).
original?
Section titled “original?”
optionaloriginal?:ImageVariant
Defined in: packages/schema/src/files/file-options.ts:71
The image stored instead of the upload (.variants()’ original).
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
Defined in: packages/schema/src/files/file-options.ts:67
The read-only text field each image’s ThumbHash goes to (.placeholder()).
provider
Section titled “provider”provider:
string
Defined in: packages/schema/src/files/file-options.ts:63
The provider of files.providers the files are stored with (.storage(), .public()).
variants?
Section titled “variants?”
optionalvariants?:Record<string,ImageVariant>
Defined in: packages/schema/src/files/file-options.ts:69
The resized copies stored beside each image, by name (.variants()).