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

Optional 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: (cancel: () => void) => any

will provide a cancel token for you to cancel the request

Type declaration

    • (cancel: () => void): any
    • Parameters

      • cancel: () => void
          • (): void
          • Returns void

      Returns any

Optional onProgress

onProgress: (percentage: number) => any

will provide the upload percentage for this file

Type declaration

    • (percentage: number): any
    • Parameters

      • percentage: number

      Returns any

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