dify icon indicating copy to clipboard operation
dify copied to clipboard

Support Bulk Folder Import for Knowledge Base Management

Open Ivan001223 opened this issue 10 months ago • 5 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Currently, the file upload mechanism requires manual selection of individual files (e.g., .md/.txt/.pdf) through the file picker dialog. This workflow presents three key limitations:

Low Efficiency: Users managing knowledge bases with 50+ files require 50+ manual selections

Structural Loss: Nested directory structures (e.g., /docs/API/v1/spec.md) cannot be preserved during upload

Error Prone: Manual multi-selection in system file dialogs often leads to accidental omissions

2. Additional context or comments

No response

3. Can you help us with this feature?

  • [x] I am interested in contributing to this feature.

Ivan001223 avatar Feb 24 '25 06:02 Ivan001223

me too

fireyanci avatar Feb 27 '25 02:02 fireyanci

...and you forgot an important point. What happens when files are updated? How to keep these in sync. The 50 manual steps can be prevented like so (problem solving for poor men):

  • go on a windows machine and select the folder you want to ingest
  • enter * or *.pdf or whatever in the search box (file select box - upper right corner)
  • mark every file showed.
  • select import

but the file update problem isn´t solved. What i´m doing is:

  • add every file again like described above....
  • dify isn´t able to see that some of the files are already ingested and EVERYTHING will be indexed again

This is my main pain point with dify

mamema avatar Mar 27 '25 19:03 mamema

Hello, I met the same issue and tried to fix it. I submit the pull request. If you want to try it please check the pull request.

Silow9 avatar Mar 28 '25 07:03 Silow9

Hello, I met the same issue and tried to fix it. I submit the pull request. If you want to try it please check the pull request.

Tks, my bro.

Ivan001223 avatar Mar 28 '25 07:03 Ivan001223

Hello, I met the same issue and tried to fix it. I submit the pull request. If you want to try it please check the pull request.

Tks, my bro.

My pleasure

Silow9 avatar Mar 28 '25 08:03 Silow9