TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

Interface: IUploaderConfig

Provides properties for the uploader widget.

Hierarchy

  • IUploaderConfig

Index

Properties

Properties

buttonText

buttonText: string


destination

destination: string

An endpoint that performs the upload.


fileFormName

fileFormName: string

A key that defines the file name for saving the uploaded file.


fileTypes

fileTypes: Array‹string›

An array of supported file types.


form

form: object

Type declaration:

  • [ key: string]: any

headers

headers: object

A dictionary defining HTTP response headers.

Type declaration:

  • [ key: string]: string

multiple

multiple: boolean

If true, users will be allowed to upload multiple files.


onError

onError: Function

A function that will be executed after a failed upload.


onSuccess

onSuccess: Function

A function that will be executed after a successful upload.


responseType

responseType: string


supportedText

supportedText: string

Text followed by supported formats.


text

text: string

The text message.