uploadAsFlow

fun BucketApi.uploadAsFlow(path: String, file: ERROR CLASS: Symbol not found for File, options: UploadOptionBuilder.() -> Unit = {}): ERROR CLASS: Ambiguity: uploadAsFlow, [io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow](source)
fun BucketApi.uploadAsFlow(path: String, file: ERROR CLASS: Symbol not found for Path, options: UploadOptionBuilder.() -> Unit = {}): ERROR CLASS: Ambiguity: uploadAsFlow, [io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow](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

file

The file to upload

options

Additional options for the upload

fun BucketApi.uploadAsFlow(path: String, uri: Uri, options: UploadOptionBuilder.() -> Unit = {}): ERROR CLASS: Ambiguity: uploadAsFlow, [io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow, io/github/jan/supabase/storage/uploadAsFlow](source)

Uploads 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 upload the file to

uri

The uri to upload

options

Additional options for the upload

fun BucketApi.uploadAsFlow(path: String, data: ByteArray, 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

RestException

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues


fun BucketApi.uploadAsFlow(path: String, data: UploadData, 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

RestException

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

on network related issues