uploadToSignedUrlAsFlow

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

RestException

or one of its subclasses if receiving an error response

HttpRequestTimeoutException

if the request timed out

HttpRequestException

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