Attachment - File Type/ExtensionTuesday, September 12, 2023 at 03:51pm
For attachments that are uploaded, how can I get the file extension (PDF, jpg, tif, etc...)? I only see these attributes on OneSpanAPIOjbects.AttachmentRequirement:
this.data = data;
this.description = description;
this.id = id;
this.name = name;
this.required = required;
this.comment = comment;
this.status = status;
I am saving the document to a ContentVersion and we have been setting:
ContentVersion.PathOnClient = documentName + '.pdf'
I need to make this dynamic with attachments.