Constructor
An attachment, that can hold the data as a Blob.
Parameters:
Name | Type | Description |
---|---|---|
args |
object | An ArrayBuffer, which be used as the data of the attachment. |
- Default Value:
- { data: null }
Example
fetch("https://example.com/my-image.jpg")
.then(r => r.blob())
.then(blob => instance.createAttachment(blob))
.then(attachmentId => console.log(attachmentId));
Extends
- Immutable.Record
Members
Members
The attachment's data as a Blob.
Type:
- Blob
- Default Value:
- null