dify icon indicating copy to clipboard operation
dify copied to clipboard

Document uploading

Open htrechsler opened this issue 1 week ago • 3 comments

Self Checks

  • [x] I have read the Contributing Guide and Language Policy.
  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [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, otherwise it will be closed.
  • [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

V1.11.1

Cloud or Self Hosted

Cloud

Steps to reproduce

In Dify Cloud I opened Knowledge - Create Knowledge - Import from file. I tried to upload files in .txt format from my computer by drag and drop and browse. The files are less than 100KB. I can only upload 1 file in total. If I try to upload another file, it opens a notepad with the file content, but does not upload to Dify. I did not try to upload in batches, just one file each time. I am just starting out with Dify and use the free sandbox tier. I want to make sure that this behavior does not occur, before upgrading.

✔️ Expected Behavior

I expect that I can upload my complete knowledge base of 45 files in batches as advertised on Dify's website.

❌ Actual Behavior

I can only upload 1 file in total. Trying to upload a second file opens the file content in notepad instead of uploading.

htrechsler avatar Dec 16 '25 14:12 htrechsler

I would like to fix this issue. Can this be assigned?

prasath1196 avatar Dec 24 '25 02:12 prasath1196

I found a workaround for the issue. It takes a step by step process.

  1. upload first file, 2. click process/save. 3. go to document, 4. open document, 5. upload next file and repeat the process. The problem obviously is that it takes a lot of time if you have many files to upload.

htrechsler avatar Dec 25 '25 10:12 htrechsler

In web/app/components/datasets/create/step-one/index.tsx, we have the following:

const supportBatchUpload = !enableBilling || plan.type !== Plan.sandbox

In web/app/components/datasets/create/file-uploader/index.tsx, we have the following:

const hideUpload = !supportBatchUpload && fileList.length > 0
// ...
{!hideUpload && (
  <div ref={dropRef} ... >
     {/* Drop zone UI */}
  </div>
)}

I think the intended behaviour in sandbox is to restrict with one file upload at a time (No batch uploads). Should we show a user message here, rather than just opening the file?

prasath1196 avatar Dec 26 '25 05:12 prasath1196