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

Function addSingleFileToStorage

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

Source from the content-addressed store, hash-verified

25}
26
27export const addSingleFileToStorage = async (mime: string, bf: Buffer, fileName: string, ...paths: string[]): Promise<StorageResult> => {
28 const provider = StorageProviderFactory.getProvider()
29 return provider.addSingleFileToStorage(mime, bf, fileName, ...paths)
30}
31
32export const getFileFromUpload = async (filePath: string): Promise<Buffer> => {
33 const provider = StorageProviderFactory.getProvider()

Callers 7

_callMethod · 0.90
downloadImgFunction · 0.90
downloadFileFunction · 0.90
saveImageToStorageFunction · 0.90
downloadContainerFileFunction · 0.90
executeFlowFunction · 0.85
_saveFileToStorageFunction · 0.85

Calls 2

getProviderMethod · 0.80

Tested by

no test coverage detected