new
FileAttachmentManager(storageService: StorageService,cacheDir: string,)
cacheFileAttachment(fileId: string): Promise<FileAttachmentCache | null>
Caches a file attachment if it's not already cached if possible
cacheMessageFileAttachments(messages: Message[]): Promise<FileAttachmentCacheMap>
Caches all file attachments in a messages
getFileAttachment(fileId: string): Promise<FileAttachment | null>
Retrieves a file attachment from storage service
getFileAttachmentCachePath(fileId: string): string
Get the local cache file path for a file attachment