Custome icon error : The requested resource isn't a valid image #7213

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

Originally created by @kkjinping on GitHub (Dec 16, 2024).

Originally assigned to: @douxc on GitHub.

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

QQ20241216-162710
QQ20241216-162722

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @kkjinping on GitHub (Dec 16, 2024). Originally assigned to: @douxc on GitHub. ### 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.14 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![QQ20241216-162710](https://github.com/user-attachments/assets/36636299-d45e-4ecc-a35a-571e892b3ec3) ![QQ20241216-162722](https://github.com/user-attachments/assets/4f3897af-bc74-4cee-87fe-27560abcd406) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:19:27 -05:00
yindo closed this issue 2026-02-21 18:19:27 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 16, 2024):

The error message "The requested resource isn't a valid image" could be related to several factors in the Dify platform. Here are some potential causes and solutions:

  1. Supported Image Formats: Ensure that the image you are trying to use is in one of the supported formats: JPG, JPEG, PNG, GIF, WEBP, or SVG [1].

  2. Image Size Limit: Check if the image exceeds the size limit of 10 MB. If it does, try reducing the image size [2].

  3. Image Validation Logic: The image validation logic is implemented in the File class within the api/core/file/models.py file. You might want to review this logic to ensure that the image meets all the validation criteria [3].

  4. Configuration Settings: Verify the configuration settings related to image handling, such as FILES_URL and MULTIMODAL_SEND_IMAGE_FORMAT, to ensure they are correctly set up for your environment [4].

By checking these aspects, you might be able to identify and resolve the issue with the custom icon error.

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 (Dec 16, 2024): <!-- Answer --> The error message "The requested resource isn't a valid image" could be related to several factors in the Dify platform. Here are some potential causes and solutions: 1. **Supported Image Formats**: Ensure that the image you are trying to use is in one of the supported formats: JPG, JPEG, PNG, GIF, WEBP, or SVG <sup>[[1]](https://github.com/langgenius/dify/issues/11652)</sup>. 2. **Image Size Limit**: Check if the image exceeds the size limit of 10 MB. If it does, try reducing the image size <sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/base/file-uploader/constants.ts)</sup>. 3. **Image Validation Logic**: The image validation logic is implemented in the `File` class within the `api/core/file/models.py` file. You might want to review this logic to ensure that the image meets all the validation criteria <sup>[[3]](https://github.com/langgenius/dify/blob/main/api/core/file/models.py)</sup>. 4. **Configuration Settings**: Verify the configuration settings related to image handling, such as `FILES_URL` and `MULTIMODAL_SEND_IMAGE_FORMAT`, to ensure they are correctly set up for your environment <sup>[[4]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/environments.md)</sup>. By checking these aspects, you might be able to identify and resolve the issue with the custom icon error. <!-- 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/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/d56e3722-b9b8-4fc7-9a51-f4b00c5fa2cf?feedback_type=other)</sup>
Author
Owner

@kkjinping commented on GitHub (Dec 16, 2024):

It worked fine before version 0.14.

@kkjinping commented on GitHub (Dec 16, 2024): It worked fine before version 0.14.
Author
Owner

@crazywoola commented on GitHub (Dec 16, 2024):

Can you try to upload the image again? I reproduced this. Will fix it later.

@crazywoola commented on GitHub (Dec 16, 2024): Can you try to upload the image again? I reproduced this. Will fix it later.
Author
Owner

@kkjinping commented on GitHub (Dec 16, 2024):

Can you try to upload the image again? I reproduced this. Will fix it later.

same error

@kkjinping commented on GitHub (Dec 16, 2024): > Can you try to upload the image again? I reproduced this. Will fix it later. same error
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7213