fileExtension | string | Alpha File extension (e.g., 'jpg', 'pdf') |
id? | string | Alpha Optional custom ID. If not provided, a UUID will be generated |
mediaType? | string | Alpha MIME type of the file (e.g., 'image/jpeg') |
metaData? | string | Alpha 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. |