Cancellation and progress reporting for one upload operation; progress is reported in bytes.
interface TxUploadContext {
signal: AbortSignal
onProgress: (loaded: number, total: number) => void
}| Field | Meaning |
|---|---|
| signal | AbortSignal for cooperative cancellation. |
| onProgress | Reports completed bytes and total size. |
import type { TxUploadContext } from '@tekocloud.de/tecexpress'
const example: TxUploadContext = { signal: new AbortController().signal, onProgress: (loaded, total) => console.log(loaded, total) }
console.log(example)