The attachment's ID.
The attachment's size given as number of bytes.
The attachment's metadata.
Copies the attachment to the specified file path.
React Native:
"data/file.txt") are automatically prefixed with
ditto.absolutePersistenceDirectory, resulting in ${persistenceDir}/data/file.txt"/Users/me/file.txt") are used as-is without modificationNode.js:
This method throws an error when running in the browser.
The path where the attachment should be copied.
Represents an attachment and can be used to insert the associated attachment into a document at a specific key-path. You can't instantiate an attachment directly, please use the ditto.store.newAttachment() method instead.