uploadToSignedUrlAsFlow

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

Uploads a file in BucketApi.bucketId under path using a presigned url

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

token

The pre-signed url token

file

The file to upload

options

Additional options for the upload

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

Uploads a file in BucketApi.bucketId under path using a presigned url

Return

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

Parameters

path

The path to upload the file to

token

The pre-signed url token

uri

The uri to upload

options

Additional options for the upload

Uploads a file in BucketApi.bucketId under path using a presigned url

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

token

The presigned url token

data

The data to upload

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


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

Uploads a file in BucketApi.bucketId under path using a presigned url

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

token

The presigned url token

data

The data to upload

options

Additional options for the upload