Attachment
Represents an attachment. Most commonly these are files, images, videos and audio recordings, but the class is flexible enough that it can represent other things as well such as a date, a given location or other things.
If you want to create a custom attachment we suggest you use extraData to store the information you need.
Parameters
The name of the site the URL leads to.
The link to the website.
The link to the URL or the resource linked.
The URL for the thumbnail version of the attachment, given the attachment has a visual quality, e.g. is a video, an image, a link to a website or similar.
The URL for the raw version of the attachment.
The URL for the asset.
The original link that was enriched.
The mime type of the given attachment. e.g. "image/jpeg"
The size of the given attachment.
The title of the attachment.
The page description.
The type of the attachment. e.g "file", "image, "audio".
The image attachment.
Alternative description in the case of an image attachment (img alt in HTML).
The original height of the attachment. Provided if the attachment is of type "image".
The original width of the attachment. Provided if the attachment is of type "image".
The local file that will be uploaded when the attachment is sent.
The state of the upload, i.e. the current progress of uploading the file.
Stores various extra information that can be sent when uploading the attachment or read when downloading it.