Aller au contenu principal
Version: Next

UploadOptions

Index

Properties

optionalallowFieldsDuplication

allowFieldsDuplication?: boolean

Whether to allow fields duplication, default is false

optionalbase64

base64?: boolean

Whether the uploaded body is base64, for example, apigw of Tencent Cloud

optionalcleanTimeout

cleanTimeout?: number

Temporary file automatic cleanup time, default is 5 minutes

optionalfileSize

fileSize?: string

Max file size (in bytes), default is 10mb

optionalignore

ignore?: IgnoreMatcher<any> | IgnoreMatcher<any>[]

Which paths to ignore

optionalmatch

match?: IgnoreMatcher<any> | IgnoreMatcher<any>[]

Match those paths with higher priority than ignore

optionalmimeTypeWhiteList

mimeTypeWhiteList?: Record<string, string | string[]> | (ctx: any) => string | string[]

Mime type white list

optionalmode

mode?: UploadMode

Upload mode, default is file

optionaltmpdir

tmpdir?: string

Temporary file directory

optionalwhitelist

whitelist?: string[] | (ctx: any) => string[]

The white ext file names