MCPcopy
hub / github.com/FlowiseAI/Flowise / addArrayFilesToStorage

Function addArrayFilesToStorage

packages/components/src/storageUtils.ts:16–25  ·  view source on GitHub ↗
(
    mime: string,
    bf: Buffer,
    fileName: string,
    fileNames: string[],
    ...paths: string[]
)

Source from the content-addressed store, hash-verified

14}
15
16export const addArrayFilesToStorage = async (
17 mime: string,
18 bf: Buffer,
19 fileName: string,
20 fileNames: string[],
21 ...paths: string[]
22): Promise<StorageResult> => {
23 const provider = StorageProviderFactory.getProvider()
24 return provider.addArrayFilesToStorage(mime, bf, fileName, fileNames, ...paths)
25}
26
27export const addSingleFileToStorage = async (mime: string, bf: Buffer, fileName: string, ...paths: string[]): Promise<StorageResult> => {
28 const provider = StorageProviderFactory.getProvider()

Callers 4

executeUpsertFunction · 0.85
createFileAttachmentFunction · 0.85
executeFlowFunction · 0.85
upsertDocStoreFunction · 0.85

Calls 2

getProviderMethod · 0.80

Tested by

no test coverage detected