createCopyOfAttachmentForUpload

open fun createCopyOfAttachmentForUpload(@NonNull context: Context, @NonNull attachmentId: String): BaseAttachment

This method create a COPY of attachment and fix thumbnails creation for Image and Video attachments if not exist or corrupted

Return

a copy of baseAttachment

Parameters

context

used to access to data provider

attachmentId

attachment ID used for copy