Replies: 1 comment
-
|
Yes, you can organize uploaded attachments into user-specific directories in Dify, but it requires code changes. The file upload API already has access to To implement user-specific directories, you need to modify the logic where the storage path is constructed—specifically, update the provider (such as For reference, see how the file key is constructed and passed in the upload flow source. You’ll want to ensure that all downstream references to file paths are updated to match the new organizational scheme. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
All uploaded attachments (including those from dialog uploads and knowledge base building) are stored under the directory /volumes/app/storage, and the filenames are hashed. Is there a way to separate them into different directories based on their paths? What code needs to be modified to achieve this? Ideally, each user should have their own dedicated directory.
Beta Was this translation helpful? Give feedback.
All reactions