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.
Properties
Section titled “Properties”accepts?
Section titled “accepts?”
optionalaccepts?: readonlystring[]
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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”unknown