mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
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:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user