can not upload text file in the chat box after publish #8117

Closed
opened 2026-02-21 18:24:01 -05:00 by yindo · 6 comments
Owner

Originally created by @dailyer on GitHub (Feb 10, 2025).

Self Checks

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

Dify version

0.15.3

Cloud or Self Hosted

Cloud

Steps to reproduce

1.setting the file upload is text then and save.

Image

2.test in the preview , the text can be upload the "xxx.md" success fully in the chat box

Image 3. click the publish button 4. go to the publish url page , and upload the ""xxx.md""

Image

✔️ Expected Behavior

the "xxx.md" text file can be uploaded successfully as the in the preview before

Actual Behavior

the "xxx.md" text file can not be uploaded

Image

Originally created by @dailyer on GitHub (Feb 10, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1.setting the file upload is text then and save. <img width="827" alt="Image" src="https://github.com/user-attachments/assets/3c1768fe-5be0-4f3d-a616-5edb5aee56f8" /> 2.test in the preview , the text can be upload the "xxx.md" success fully in the chat box <img width="1084" alt="Image" src="https://github.com/user-attachments/assets/1fac6e84-5051-4eda-9b79-6a7051828581" /> 3. click the publish button 4. go to the publish url page , and upload the ""xxx.md"" ![Image](https://github.com/user-attachments/assets/f358d7e4-51b5-4422-b2ee-d818ea886fc5) ### ✔️ Expected Behavior the "xxx.md" text file can be uploaded successfully as the in the preview before ### ❌ Actual Behavior the "xxx.md" text file can not be uploaded ![Image](https://github.com/user-attachments/assets/ad19b4fa-1474-409f-8300-58d1c071967f)
yindo added the 🐞 bug🤔 cant-reproducecloud labels 2026-02-21 18:24:01 -05:00
yindo closed this issue 2026-02-21 18:24:01 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 10, 2025):

Hello @dailyer! I'm here to assist you with any bugs, questions, or contributions you may have. Let's work together to resolve your issue!

I found a similar unsolved discussion titled "can not upload file in chat window" which might be related to your issue [1].

In Dify version 0.15.3, there are known issues related to file uploads, including errors like UnsupportedFileTypeError which occurs when the uploaded file type is not allowed [2]. Although Markdown files are supported as part of the document file types that can be uploaded, there might be specific configuration or validation issues in the published version that are causing this problem [3].

Ensure that the "File Upload" feature is correctly configured in the published version, and check if there are any specific error messages or logs generated when the upload fails. This might provide more insight into the issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Feb 10, 2025): <!-- Greeting --> Hello @dailyer! I'm here to assist you with any bugs, questions, or contributions you may have. Let's work together to resolve your issue! <!-- Answer --> I found a similar unsolved discussion titled "[can not upload file in chat window](https://github.com/langgenius/dify/discussions/10782)" which might be related to your issue <sup>[[1]](https://github.com/langgenius/dify/discussions/10782)</sup>. In Dify version 0.15.3, there are known issues related to file uploads, including errors like `UnsupportedFileTypeError` which occurs when the uploaded file type is not allowed <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/controllers/web/error.py)</sup>. Although Markdown files are supported as part of the document file types that can be uploaded, there might be specific configuration or validation issues in the published version that are causing this problem <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/file-upload.md)</sup>. Ensure that the "File Upload" feature is correctly configured in the published version, and check if there are any specific error messages or logs generated when the upload fails. This might provide more insight into the issue. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/b6edbd6e-8e7e-469b-9771-b03c9a19835f?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 10, 2025):

Can not reproduce this error.

Image

Please make sure this is saved successfully.

@crazywoola commented on GitHub (Feb 10, 2025): Can not reproduce this error. <img width="843" alt="Image" src="https://github.com/user-attachments/assets/76f0f6f6-9245-491c-88d4-a55899ea41ca" /> Please make sure this is saved successfully.
Author
Owner

@dailyer commented on GitHub (Feb 10, 2025):

i make sure it is saved , because in the preview page i debug and test the flow is worked. but in the published url page , the file only support img.

published url page:
Image

preview page:
Image

@dailyer commented on GitHub (Feb 10, 2025): i make sure it is saved , because in the preview page i debug and test the flow is worked. but in the published url page , the file only support img. published url page: ![Image](https://github.com/user-attachments/assets/17811ee1-f22e-4034-97fc-2be9a1a89ef8) preview page: ![Image](https://github.com/user-attachments/assets/6acd345e-e0f6-4fb4-9769-32d0802cdd84)
Author
Owner

@dailyer commented on GitHub (Feb 10, 2025):

my simple test flow: upload the file, then output the file text
Image

@dailyer commented on GitHub (Feb 10, 2025): my simple test flow: upload the file, then output the file text ![Image](https://github.com/user-attachments/assets/225cca32-3ed1-4399-85ef-cc7aa027754c)
Author
Owner

@dailyer commented on GitHub (Feb 17, 2025):

I found my problem, when I setting the file type , I did not choose the start node

@dailyer commented on GitHub (Feb 17, 2025): I found my problem, when I setting the file type , I did not choose the start node
Author
Owner

@slajdfk commented on GitHub (May 20, 2025):

I found my problem, when I setting the file type , I did not choose the start node

The. md file still cannot be uploaded in the workflow. How did you solve this problem?

@slajdfk commented on GitHub (May 20, 2025): > I found my problem, when I setting the file type , I did not choose the start node The. md file still cannot be uploaded in the workflow. How did you solve this problem?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8117