upload

abstract suspend fun upload(bo: T, data: Any, executor: <ERROR CLASS>? = null, config: <ERROR CLASS>? = null): T

Upload data for the given blob.

Return

the bo

Parameters

bo

The blob to upload the data for.

data

ByteArray on JVM and Blob for JavaScript.

abstract suspend fun upload(bo: T, data: Any, executor: <ERROR CLASS>? = null, config: <ERROR CLASS>? = null, callback: (T, state: BlobCreateState, uploaded: Long) -> Unit): T

Upload data for the given blob.

Return

the bo

Parameters

bo

The blob to upload the data for.

data

ByteArray on JVM and Blob for JavaScript.

callback

Function to execute as upload progresses.