upload
suspend fun BucketApi.upload(path: String, file: <Error class: unknown class>, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)
suspend fun BucketApi.upload(path: String, file: <Error class: unknown class>, 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