upload

suspend fun BucketApi.upload(path: String, file: ERROR CLASS: Symbol not found for File, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)
suspend fun BucketApi.upload(path: String, file: ERROR CLASS: Symbol not found for Path, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)

Uploads a file in BucketApi.bucketId under path

Return

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

suspend fun BucketApi.upload(path: String, uri: Uri, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)

Uploads a file in BucketApi.bucketId under path

Return

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