Uploading an xml file returns the error "Invalid upload file" in a docker local deployment of dify. #6616

Closed
opened 2026-02-21 18:16:34 -05:00 by yindo · 4 comments
Owner

Originally created by @zqcing678 on GitHub (Nov 7, 2024).

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.10.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Simply create a workflow and upload a file in xml format at the start node to reproduce this error

✔️ Expected Behavior

Correctly read xml format files.

Actual Behavior

Returns the error "Invalid upload file".

Originally created by @zqcing678 on GitHub (Nov 7, 2024). ### 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.10.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Simply create a workflow and upload a file in xml format at the start node to reproduce this error ### ✔️ Expected Behavior Correctly read xml format files. ### ❌ Actual Behavior Returns the error "Invalid upload file".
yindo added the 🐞 bug label 2026-02-21 18:16:34 -05:00
yindo closed this issue 2026-02-21 18:16:34 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 7, 2024):

Hey @zqcing678! 👋 I'm here to help you with any bugs, questions, or contributions you might have for Dify. Let's work together to solve this issue!

I found a similar issue related to the "Invalid upload file" error in Dify. The issue was closed, and the suggested solution was to ensure that the user ID is included and consistent in both the file upload and the chat message creation requests. This consistency is necessary to avoid the "Invalid upload file" error [1].

Additionally, there was a discussion about the web scraper not supporting the application/xml type, which might be related to your issue [2].

For your specific case, ensure that the XML file type is supported in your configuration. Dify's workflow start node supports XML files, so the issue might be related to the deployment setup or configuration [3]. Check if the file validation process is correctly configured to allow XML files by verifying the allowed file extensions in your setup.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 7, 2024): <!-- Greeting --> Hey @zqcing678! 👋 I'm here to help you with any bugs, questions, or contributions you might have for Dify. Let's work together to solve this issue! <!-- Answer --> I found a similar issue related to the "Invalid upload file" error in Dify. The issue was closed, and the suggested solution was to ensure that the `user` ID is included and consistent in both the file upload and the chat message creation requests. This consistency is necessary to avoid the "Invalid upload file" error <sup>[[1]](https://github.com/langgenius/dify/issues/8573)</sup>. Additionally, there was a discussion about the web scraper not supporting the `application/xml` type, which might be related to your issue <sup>[[2]](https://github.com/langgenius/dify/discussions/3513)</sup>. For your specific case, ensure that the XML file type is supported in your configuration. Dify's workflow start node supports XML files, so the issue might be related to the deployment setup or configuration <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/file-upload.md)</sup>. Check if the file validation process is correctly configured to allow XML files by verifying the allowed file extensions in your setup. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Nov 7, 2024):

Please upgrade to v0.11.0

@crazywoola commented on GitHub (Nov 7, 2024): Please upgrade to v0.11.0
Author
Owner

@zqcing678 commented on GitHub (Nov 8, 2024):

Please upgrade to v0.11.0

I have just upgraded to v0.11.0 and this problem persists.

@zqcing678 commented on GitHub (Nov 8, 2024): > Please upgrade to v0.11.0 I have just upgraded to v0.11.0 and this problem persists.
Author
Owner

@crazywoola commented on GitHub (Nov 8, 2024):

Please upgrade to v0.11.0

I have just upgraded to v0.11.0 and this problem persists.

https://github.com/langgenius/dify/issues/10220#issuecomment-2463632550

@crazywoola commented on GitHub (Nov 8, 2024): > > Please upgrade to v0.11.0 > > I have just upgraded to v0.11.0 and this problem persists. https://github.com/langgenius/dify/issues/10220#issuecomment-2463632550
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6616