Skip to main content

SaveAttachmentOptions

Alpha

Fields shared by AttachmentQueue.saveFile and AttachmentQueue.saveFileFromUri.

Properties

PropertyTypeDescription
fileExtensionstringAlpha File extension (e.g., 'jpg', 'pdf')
id?stringAlpha Optional custom ID. If not provided, a UUID will be generated
mediaType?stringAlpha MIME type of the file (e.g., 'image/jpeg')
metaData?stringAlpha Optional metadata to associate with the attachment
updateHook?(transaction, attachment) => Promise<void>Alpha Optional callback to execute additional database operations within the same transaction as the attachment creation.