upload-with-progress


UploadJob<TMeta> = object

Defined in: src/browser/types.ts:21

Represents the state of a single file being uploaded in a batch.

Type Parameters

TMeta

TMeta

Properties

error

error: string | null

Defined in: src/browser/types.ts:35

Error message if this specific upload failed


file

file: File

Defined in: src/browser/types.ts:25

The file being uploaded


id

id: string

Defined in: src/browser/types.ts:23

Unique identifier for the upload job


isUploading

isUploading: boolean

Defined in: src/browser/types.ts:33

True if the file is currently uploading


loaded

loaded: number

Defined in: src/browser/types.ts:29

Bytes successfully loaded


meta?

optional meta: TMeta

Defined in: src/browser/types.ts:37

The metadata returned upon successful upload


progress

progress: number

Defined in: src/browser/types.ts:27

Individual progress percentage (0-100)


total

total: number

Defined in: src/browser/types.ts:31

Total bytes of the file