Unable to obtain URL for uploading images #7250

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

Originally created by @Jaleel-zhu on GitHub (Dec 17, 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.13.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Create file variable, unable to obtain the URL of the file
image
image
image

✔️ Expected Behavior

can obtain the URL of the file

Actual Behavior

Unable to obtain URL for uploading images

Originally created by @Jaleel-zhu on GitHub (Dec 17, 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.13.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Create file variable, unable to obtain the URL of the file ![image](https://github.com/user-attachments/assets/51dd04e0-b210-473c-9b53-84a3ffc868fe) ![image](https://github.com/user-attachments/assets/b6c80911-1a2f-47a8-8f21-0b1e997a96c8) ![image](https://github.com/user-attachments/assets/97644a78-6eaf-4c71-ad1b-dc3adff89172) ### ✔️ Expected Behavior can obtain the URL of the file ### ❌ Actual Behavior Unable to obtain URL for uploading images
yindo added the 🐞 bug label 2026-02-21 18:19:38 -05:00
yindo closed this issue 2026-02-21 18:19:38 -05:00
Author
Owner

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

@Jaleel-zhu Hello there! I'm here to help you with any bugs, questions, or contributions you might need assistance with. Let's tackle this together!

I found a relevant solution for the issue of being unable to obtain the URL for uploading images in a self-hosted Dify version 0.13.2 setup using Docker. You should use file.remote_url instead of file.url in the code execution node. The url property returns null in code nodes, while remote_url contains the actual URL of the uploaded image [1].

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 17, 2024): <!-- Greeting --> @Jaleel-zhu Hello there! I'm here to help you with any bugs, questions, or contributions you might need assistance with. Let's tackle this together! <!-- Answer --> I found a relevant solution for the issue of being unable to obtain the URL for uploading images in a self-hosted Dify version 0.13.2 setup using Docker. You should use `file.remote_url` instead of `file.url` in the code execution node. The `url` property returns null in code nodes, while `remote_url` contains the actual URL of the uploaded image <sup>[[1]](https://github.com/langgenius/dify/issues/11543)</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/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/25af92e3-9256-4dcf-a427-b7c433457e73?feedback_type=other)</sup>
Author
Owner

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

Duplicated https://github.com/langgenius/dify/discussions/10687

@crazywoola commented on GitHub (Dec 18, 2024): Duplicated https://github.com/langgenius/dify/discussions/10687
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7250