Abbruch und Fortschrittsmeldung einer einzelnen Uploadoperation; Fortschritt wird in Bytes gemeldet.
interface TxUploadContext {
signal: AbortSignal
onProgress: (loaded: number, total: number) => void
}| Feld | Bedeutung |
|---|---|
| signal | AbortSignal für kooperativen Abbruch. |
| onProgress | Meldet abgeschlossene Bytes und Gesamtgröße. |
import type { TxUploadContext } from '@tekocloud.de/tecexpress'
const example: TxUploadContext = { signal: new AbortController().signal, onProgress: (loaded, total) => console.log(loaded, total) }
console.log(example)