Don't work "Other file types" with Simple File in "Start" block #12902

Closed
opened 2026-02-21 19:09:36 -05:00 by yindo · 2 comments
Owner

Originally created by @iwaim on GitHub (Apr 14, 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

1.2.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When I use "Other file types" with Simple File in "Start" block, the dify raise ValueError.

Image

✔️ Expected Behavior

"test run" will be completed successfully.

Actual Behavior

raise ValueError

Image

Image

Originally created by @iwaim on GitHub (Apr 14, 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 1.2.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When I use "Other file types" with Simple File in "Start" block, the dify raise ValueError. ![Image](https://github.com/user-attachments/assets/e91d0286-6782-45f1-abdb-28c04fa7b7d7) ### ✔️ Expected Behavior "test run" will be completed successfully. ### ❌ Actual Behavior raise ValueError ![Image](https://github.com/user-attachments/assets/af0bdbfb-f5d2-4d14-b943-63c76a7be290) ![Image](https://github.com/user-attachments/assets/4f64d470-99dd-44e7-9368-40888e97cf80)
yindo added the 🐞 bug label 2026-02-21 19:09:36 -05:00
yindo closed this issue 2026-02-21 19:09:36 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 14, 2025):

Hello @iwaim! 👋 I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you on your journey as a contributor. While you wait for a human maintainer, feel free to ask me anything!

The issue you're encountering with the "Other file types" option in the "Simple File" block within the "Start" node is likely due to incorrect configuration of the file type. To resolve the ValueError, ensure that you specify the file type as 'custom' in the input parameters when using the Workflow API's /workflows/run endpoint. This is necessary for handling file types that are not explicitly categorized under 'document', 'image', 'audio', or 'video' [1].

Additionally, make sure that the 'Upload File Types' setting is configured to 'both' in the application settings, enable the vision function, and configure a vision model. Without these settings properly configured, you may encounter file validation errors [2].

If you are handling unsupported file types, consider installing the PyMuPDF Plugin from the Dify marketplace. This allows you to specify extensions you want to support in the 'Other file types' option and set up an IF/ELSE block in your workflow to use PyMuPDF for unsupported file types where mime.type is 'application' [3].

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Apr 14, 2025): <!-- Greeting --> Hello @iwaim! 👋 I'm [Dosu](https://dosu.dev), your friendly bot here to help you solve bugs, answer questions, and guide you on your journey as a contributor. While you wait for a human maintainer, feel free to ask me anything! <!-- Answer --> The issue you're encountering with the "Other file types" option in the "Simple File" block within the "Start" node is likely due to incorrect configuration of the file type. To resolve the `ValueError`, ensure that you specify the file type as `'custom'` in the input parameters when using the Workflow API's `/workflows/run` endpoint. This is necessary for handling file types that are not explicitly categorized under 'document', 'image', 'audio', or 'video' <sup>[[1]](https://github.com/langgenius/dify/issues/11671)</sup>. Additionally, make sure that the 'Upload File Types' setting is configured to 'both' in the application settings, enable the vision function, and configure a vision model. Without these settings properly configured, you may encounter file validation errors <sup>[[2]](https://github.com/langgenius/dify/issues/15677)</sup>. If you are handling unsupported file types, consider installing the PyMuPDF Plugin from the Dify marketplace. This allows you to specify extensions you want to support in the 'Other file types' option and set up an IF/ELSE block in your workflow to use PyMuPDF for unsupported file types where mime.type is 'application' <sup>[[3]](https://github.com/langgenius/dify/issues/17967)</sup>. <!-- 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/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4b52a966-7cbd-4dac-9381-7b3f8a32cbd3?feedback_type=other)</sup>
Author
Owner

@CTD-Networks-CO-LTD commented on GitHub (Apr 19, 2025):

Dify v1.2.0 causes an error when uploading a custom file (v1.1.3 has no problem with the same DSL file)

@crazywoola @dosu
It is not a duplicate of #16710 ! New "v 1.2.0 " issue. !

I recently tried to solve the problem myself using the method in #17967, by installing v1.2.0 anew and importing a DSL file from a v1.1.3 workflow, but this problem only occurred with v1.2.0.

(Watch about the recording of this video..)

  • v1.2.0 -> "Detected file type does not match the specified type. Please verify the file." error
  • v1.1.3 -> No Problem.

https://github.com/user-attachments/assets/543db190-9957-4233-9003-0a5086470d26

@CTD-Networks-CO-LTD commented on GitHub (Apr 19, 2025): # Dify v1.2.0 causes an error when uploading a custom file (v1.1.3 has no problem with the same DSL file) @crazywoola @dosu **It is not a duplicate of [#16710](https://github.com/langgenius/dify/issues/16710) ! New "v 1.2.0 " issue. !** I recently tried to solve the problem myself using the method in #17967, by installing v1.2.0 anew and importing a DSL file from a v1.1.3 workflow, but this problem only occurred with v1.2.0. (Watch about the recording of this video..) - v1.2.0 -> "Detected file type does not match the specified type. Please verify the file." error - v1.1.3 -> No Problem. https://github.com/user-attachments/assets/543db190-9957-4233-9003-0a5086470d26
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12902