Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransmitOptions

Hierarchy

  • TransmitOptions

Properties

Optional field

field: string

File field to accept files from.

Optional filter

Function that returns a boolean to determine which files should be persisted.

hashAlgorithm

hashAlgorithm: "md5" | "sha1" | "sha256"

The hash algorithm used to compute the file checksum.

manager

Transmit manager to handle the final upload destination.

maxFieldNameSize

maxFieldNameSize: number

Max field name size (in bytes).

maxFieldValueSize

maxFieldValueSize: number

Max field value size (in bytes).

maxFields

maxFields: number

Max number of text fields.

maxFileSize

maxFileSize: number

Max file size per file field (in bytes).

maxFiles

maxFiles: number

Max number of file fields.

maxHeaderPairs

maxHeaderPairs: number

Max number of header key => value pairs to parse.

maxParts

maxParts: number

Max number of parts (fields + files).

minFields

minFields: number

Min number of text fields.

minFileSize

minFileSize: number

Min file size per file field (in bytes).

minFiles

minFiles: number

Min number of file fields.

transformers

transformers: TransformerFunction[]

Array of functions that returns a ReadWriteStream to modify uploaded files.

truncateFieldNames

truncateFieldNames: boolean

Whether field names that exceed "maxFieldNameSize" should be silently truncated.

truncateFieldValues

truncateFieldValues: boolean

Whether field values that exceed "maxFieldValueSize" should be silently truncated.

Generated using TypeDoc