upload file show value can not be empty #6844

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

Originally created by @xiaogu-space on GitHub (Nov 19, 2024).

Self Checks

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

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

In the "Explore" I have set the img1 file,but show the error "img1 value can not be empty".When I use in the "Studio" is ok, don't show the error.
image

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @xiaogu-space on GitHub (Nov 19, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. In the "Explore" I have set the img1 file,but show the error "img1 value can not be empty".When I use in the "Studio" is ok, don't show the error. ![image](https://github.com/user-attachments/assets/460f7cde-51b7-4d9e-bb5e-c1bbcca2596c) ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 🐞 bug label 2026-02-21 18:17:34 -05:00
yindo closed this issue 2026-02-21 18:17:34 -05:00
Author
Owner

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

I found a similar unsolved discussion regarding issues with uploading images in Dify's workflow via API. You can check it out here [1].

Regarding your issue, the error "img1 value can not be empty" might be related to the specific validation rules for file uploads in the 'Explore' section of Dify. Here are some key points to check:

  1. File Presence: Ensure that the file is included in the request. If not, a NoFileUploadedError might be raised.
  2. Filename Requirement: The file must have a filename. If not, a FilenameNotExistsError might be raised.
  3. Supported File Type: Ensure the file type is supported to avoid an UnsupportedFileTypeError [2].

Since the issue does not occur in the "Studio" section, it might be worth checking if there are any specific configurations or settings that differ between the "Explore" and "Studio" sections, although I couldn't find specific information on this [2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Nov 19, 2024): <!-- Answer --> I found a similar unsolved discussion regarding issues with uploading images in Dify's workflow via API. You can check it out [here](https://github.com/langgenius/dify/discussions/7482) <sup>[[1]](https://github.com/langgenius/dify/discussions/7482)</sup>. Regarding your issue, the error "img1 value can not be empty" might be related to the specific validation rules for file uploads in the 'Explore' section of Dify. Here are some key points to check: 1. **File Presence**: Ensure that the file is included in the request. If not, a `NoFileUploadedError` might be raised. 2. **Filename Requirement**: The file must have a filename. If not, a `FilenameNotExistsError` might be raised. 3. **Supported File Type**: Ensure the file type is supported to avoid an `UnsupportedFileTypeError` <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/controllers/console/files.py)</sup>. Since the issue does not occur in the "Studio" section, it might be worth checking if there are any specific configurations or settings that differ between the "Explore" and "Studio" sections, although I couldn't find specific information on this <sup>[[2]](https://github.com/langgenius/dify/blob/main/api/controllers/console/files.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

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

Which version are you referring? If you encounter a bug, please use bug report template instead.

@crazywoola commented on GitHub (Nov 19, 2024): Which version are you referring? If you encounter a bug, please use bug report template instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6844