Describes the ratio of a pending AJAX upload.

Hierarchy

  • UploadRatio

Index

Properties

bytesTotal

bytesTotal: number

The total number of bytes that need to be uploaded.

bytesUploaded

bytesUploaded: number

The number of bytes that were already upload.

ratio

ratio: number

The current ratio, in the interval [0, 1]. The relation ratio = bytesUploaded / bytesTotal holds, up to floating point precision.