Interface Options

Hierarchy

  • Options

Index

Properties

Optional chunkSize

chunkSize: number

the byte size of each chunk sent to TagoIO. This will influence how many requests this function will perform

Optional contentType

contentType: string

The file's content type. This is optional

Optional dashboard

dashboard: string

will upload simulating an input form on the dashboard. widget also needs to be specified with this

isPublic

isPublic: boolean

if the file can be accessed by anybody with a link or not

Optional maxTriesForEachChunk

maxTriesForEachChunk: number

the maximum amount of tries to upload each chunk to TagoIO. After this many unsuccessful tries of a single chunk, the upload is aborted

Optional onCancelToken

onCancelToken: Function

will provide a cancel token for you to cancel the request

onProgress

onProgress: Function

will provide the upload percentage for this file

Optional timeoutForEachFailedChunk

timeoutForEachFailedChunk: number

timeout before trying to upload the same chunk if the request failed

Optional widget

widget: string

will upload simulating an input form on the dashboard. dashboard also needs to be specified with this