updateAsFlow

fun BucketApi.updateAsFlow(path: String, file: <Error class: unknown class>, options: UploadOptionBuilder.() -> Unit = {}): <Error class: unknown class>(source)
fun BucketApi.updateAsFlow(path: String, file: <Error class: unknown class>, options: UploadOptionBuilder.() -> Unit = {}): <Error class: unknown class>(source)

Updates a file in BucketApi.bucketId under path

Return

A flow that emits the upload progress and at last the key to the uploaded file

Parameters

path

The path to be updated

file

The new file

options

Additional options for the upload

fun BucketApi.updateAsFlow(path: String, uri: Uri, options: UploadOptionBuilder.() -> Unit = {}): Flow<UploadStatus>(source)

Updates a file in BucketApi.bucketId under path

Return

A flow that emits the upload progress and at last the key to the updated file

Parameters

path

The path to update the file to

uri

The uri to update

options

Additional options for the upload

fun BucketApi.updateAsFlow(path: String, data: UploadData, options: UploadOptionBuilder.() -> Unit = {}): Flow<UploadStatus>(source)

Uploads a file in BucketApi.bucketId under path

Return

A flow that emits the upload progress and at last the key to the uploaded file

Parameters

path

The path to upload the file to

options

Additional options for the upload

data

The data to upload

Throws

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

on network related issues


fun BucketApi.updateAsFlow(path: String, data: ByteArray, options: UploadOptionBuilder.() -> Unit = {}): Flow<UploadStatus>(source)

Updates a file in BucketApi.bucketId under path

Return

A flow that emits the upload progress and at last the key to the uploaded file

Parameters

path

The path to update the file to

data

The new data

options

Additional options for the upload

Throws

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

on network related issues