uploadAsset

abstract suspend fun uploadAsset(metadata: AssetMetadataRequest, encryptedDataSource: () -> Source, encryptedDataSize: Long): NetworkResponse<AssetResponse>

Uploads an already encrypted asset

Parameters

metadata

the metadata associated to the asset that wants to be uploaded

encryptedDataSource

the source of the encrypted data to be uploaded

encryptedDataSize

the size in bytes of the asset to be uploaded