addAttachment method
Adds a new attachment, with keywords, to this feature.
Throws an error if the feature layer doesn't support the attachment keywords.
Parameters:
name— The attachment name.contentType— The type of content.data— The attachment data.keywords— Attachment keywords. The attachment keywords can be accessed using Attachment.keywords.
Return Value: The new Attachment that was added to this feature.