uploadAndPersistPublicAsset

open suspend override fun uploadAndPersistPublicAsset(mimeType: String, assetDataPath: <Error class: unknown class>, assetDataSize: Long, conversationId: <Error class: unknown class>?, filename: String?, filetype: String?): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>>

Method used to upload and persist to local memory a public asset

Return

Either a CoreFailure if anything went wrong, or the UploadedAssetId of the asset if successful

Parameters

mimeType

type of the asset to be uploaded

assetDataPath

the path of the unencrypted data to be uploaded

assetDataSize

the size of the unencrypted data to be uploaded

conversationId

optional conversation ID for audit logging

filename

optional filename for audit logging

filetype

optional file type for audit logging