t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / VUE

TxUploadContext.

Abbruch und Fortschrittsmeldung einer einzelnen Uploadoperation; Fortschritt wird in Bytes gemeldet.

ts
interface TxUploadContext {
  signal: AbortSignal
  onProgress: (loaded: number, total: number) => void
}
FeldBedeutung
signalAbortSignal für kooperativen Abbruch.
onProgressMeldet abgeschlossene Bytes und Gesamtgröße.
ts
import type { TxUploadContext } from '@tekocloud.de/tecexpress'
const example: TxUploadContext = { signal: new AbortController().signal, onProgress: (loaded, total) => console.log(loaded, total) }
console.log(example)