Chore/Update multer path if blob storage path is set (#3609)

update multer path if blob storage path is set
This commit is contained in:
Henry Heng
2024-12-03 23:34:27 +00:00
committed by GitHub
parent bd203a180a
commit 7482e7fff6
7 changed files with 19 additions and 13 deletions
+6
View File
@@ -1680,3 +1680,9 @@ export const getAPIOverrideConfig = (chatflow: IChatFlow) => {
return { nodeOverrides: {}, variableOverrides: [], apiOverrideStatus: false }
}
}
export const getUploadPath = (): string => {
return process.env.BLOB_STORAGE_PATH
? path.join(process.env.BLOB_STORAGE_PATH, 'uploads')
: path.join(getUserHome(), '.flowise', 'uploads')
}