Can't retrieve image.url from the Start node #6426

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

Originally created by @xfanwu on GitHub (Oct 29, 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

Cloud latest

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Set an image as required input at Start node
  2. add any sequence block and link to the start node
  3. use variable of image.url from the Start node in the added block
  4. in the Preview mode, upload any image or paste a url
  5. actually the value from input was not passed to the block

✔️ Expected Behavior

Get the value from image file.

Actual Behavior

The image file return null.

Please see attached for my test.

WX20241030-022850@2x

WX20241030-022207@2x

Originally created by @xfanwu on GitHub (Oct 29, 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 Cloud latest ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Set an image as required input at Start node 2. add any sequence block and link to the start node 3. use variable of image.url from the Start node in the added block 4. in the Preview mode, upload any image or paste a url 5. actually the value from input was not passed to the block ### ✔️ Expected Behavior Get the value from image file. ### ❌ Actual Behavior The image file return null. Please see attached for my test. ![WX20241030-022850@2x](https://github.com/user-attachments/assets/70545549-6520-40ed-b7b2-ad4f0652559e) ![WX20241030-022207@2x](https://github.com/user-attachments/assets/2b965c91-acc5-4f6c-8c4a-5689046c8dd3)
yindo added the 🐞 bug label 2026-02-21 18:15:41 -05:00
yindo closed this issue 2026-02-21 18:15:41 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 29, 2024):

The issue you're experiencing with retrieving image.url from the Start node in Dify might be related to how the image input is being handled. Here are a few things to check and try:

  1. Image Input Configuration: Ensure that the image input is correctly configured in the Start node. The expected data structure for image input is an Array[File] [1]. Make sure that the input field is set up to accept files and that you're using the correct variable to access the image URL.

  2. Variable Passing: Verify that the variable for the image URL is correctly passed to the subsequent nodes. Dify uses the sys.files system variable to store images uploaded by users, but it's recommended to use the file variables within the "Input Fields" instead [2].

  3. Preview Mode: In Preview mode, ensure that the image is uploaded correctly and that the URL is accessible. If you're pasting a URL, make sure it's a direct link to an image file.

  4. Error Handling: Check if there are any error messages or logs that provide more details about why the image URL is returning null. This might give you clues about what might be going wrong.

If these steps don't resolve the issue, there might be a need to look into the specific configuration of your workflow or consider any limitations or known issues with the current version of Dify.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 29, 2024): <!-- Answer --> The issue you're experiencing with retrieving `image.url` from the Start node in Dify might be related to how the image input is being handled. Here are a few things to check and try: 1. **Image Input Configuration**: Ensure that the image input is correctly configured in the Start node. The expected data structure for image input is an `Array[File]` <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/node/start.md)</sup>. Make sure that the input field is set up to accept files and that you're using the correct variable to access the image URL. 2. **Variable Passing**: Verify that the variable for the image URL is correctly passed to the subsequent nodes. Dify uses the `sys.files` system variable to store images uploaded by users, but it's recommended to use the file variables within the "Input Fields" instead <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/additional-features.md)</sup>. 3. **Preview Mode**: In Preview mode, ensure that the image is uploaded correctly and that the URL is accessible. If you're pasting a URL, make sure it's a direct link to an image file. 4. **Error Handling**: Check if there are any error messages or logs that provide more details about why the image URL is returning null. This might give you clues about what might be going wrong. If these steps don't resolve the issue, there might be a need to look into the specific configuration of your workflow or consider any limitations or known issues with the current version of Dify. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@hjlarry commented on GitHub (Oct 29, 2024):

duplicated with https://github.com/langgenius/dify/issues/9567

@hjlarry commented on GitHub (Oct 29, 2024): duplicated with https://github.com/langgenius/dify/issues/9567
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6426