StreamingUpload

Functions

Link copied to clipboard
abstract suspend fun complete(): T

Completes a multipart upload. All parts must be uploaded before completing the upload, and there cannot be gaps in the indexes. Idempotent, Multiple calls will return the same object, but only the first call will have side effects.

Link copied to clipboard
abstract suspend fun uploadPart(part: ByteArray, index: Int)

Uploads a part of the object. Each part must have a unique index. The parts do not need to be uploaded in order. The index is 1-based.