Skip to content

FileProcessor

FileProcessor = object

Defined in: packages/schema/src/files/file-options.ts:19

Computes a value for another column from an upload (.derive()). It runs once, on the upload route; a file whose type is not in accepts leaves the column null.

optional accepts?: readonly string[]

Defined in: packages/schema/src/files/file-options.ts:21

Exact types and type/* wildcards; every type when omitted.


run: (file) => unknown

Defined in: packages/schema/src/files/file-options.ts:23

The value for the column, which must pass that field’s schema.

FileProcessorInput

unknown