Skip to Content

saveAppFile

saveAppFile(store: ChatStore, file: object, signal?: AbortSignal, attachments?: VaultAttachments): Promise<AppFile>

Defined in: src/lib/chatStore/appFiles.ts:244 

Creates or replaces a conversation file, the last save of a path winning across devices; with attachments, a file too large for one record becomes a vault attachment when vault supports it.

Parameters

ParameterType

store

ChatStore

file

object

file.content

string

file.conversationId?

string

file.path?

string

signal?

AbortSignal

attachments?

VaultAttachments

Returns

Promise<AppFile>

Last updated on