update
open suspend fun update(path: String, data: ByteArray, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)
Updates a file in bucketId under path
Return
the key to the updated file
Parameters
path
The path to update the file to
data
The new data
options
Additional options for the upload
Throws
if data to upload is empty
containing an error code, if receiving an error response
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues
abstract suspend fun update(path: String, data: UploadData, options: UploadOptionBuilder.() -> Unit = {}): FileUploadResponse(source)
Updates a file in bucketId under path
Return
the key to the updated file
Parameters
path
The path to update the file to
data
The new data
options
Additional options for the upload
Throws
containing an error code, if receiving an error response
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues