uploadAndPersistPrivateAsset
open suspend override fun uploadAndPersistPrivateAsset(mimeType: String, assetDataPath: <Error class: unknown class>, otrKey: <Error class: unknown class>, extension: String?): Either<CoreFailure, <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>>
Method used to upload the encrypted data and persist to local memory the already decoded asset
Return
Either a CoreFailure if anything went wrong, or the UploadedAssetId of the newly created asset and the SHA256Key of the encrypted asset if successful
Parameters
mimeType
type of the asset to be uploaded
assetDataPath
the path of the encrypted data to be uploaded
otrKey
the AES256Key that will be used to encrypt the data living in assetDataPath
extension
extension of the asset to be uploaded