iterations on images #7599

Closed
opened 2026-02-21 18:21:25 -05:00 by yindo · 3 comments
Owner

Originally created by @cr7Por on GitHub (Jan 8, 2025).

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.

I am using ComfyUI tool generating several images, then I want to send those images one by one to the multimodal LLM, let the LLM descibe the content for me. Then I found that the iteration node can not deal with Array['files'], what can I do? Is there a way that I can select the items in Array by index, i.e. Files[iteration/indexnumber]?

2. Additional context or comments

invalid iterator value: value_type=<SegmentType.ARRAY_FILE: 'array[file]'> value=[File(dify_model_identity='dify__file', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='dec4bafa-0281-4cfa-8c87-64f831c250cb', filename='f8266e5fc98e4aa3a8ab98445fc60928.png', extension='.png', mime_type='image/png', size=324017), File(dify_model_identity='dify__file', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='c7d620bc-4a2b-48e8-b431-c9f445eb369f', filename='b63247f3e20c4e678c6b9543bfbeacb9.png', extension='.png', mime_type='image/png', size=354757), File(dify_model_identity='dify__file', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='d1ddee8a-6ba7-4b56-a28d-2e8863583bb1', filename='4c285a3c95c0436483917d15ee1951c3.png', extension='.png', mime_type='image/png', size=346694)] id='74690aff-1a49-473d-a817-9fb492bfa201' name='files' description='' selector=['1736231102100', 'files'], please provide a list.

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @cr7Por on GitHub (Jan 8, 2025). ### 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. I am using ComfyUI tool generating several images, then I want to send those images one by one to the multimodal LLM, let the LLM descibe the content for me. Then I found that the iteration node can not deal with Array['files'], what can I do? Is there a way that I can select the items in Array by index, i.e. Files[iteration/indexnumber]? ### 2. Additional context or comments invalid iterator value: value_type=<SegmentType.ARRAY_FILE: 'array[file]'> value=[File(dify_model_identity='__dify__file__', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='dec4bafa-0281-4cfa-8c87-64f831c250cb', filename='f8266e5fc98e4aa3a8ab98445fc60928.png', extension='.png', mime_type='image/png', size=324017), File(dify_model_identity='__dify__file__', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='c7d620bc-4a2b-48e8-b431-c9f445eb369f', filename='b63247f3e20c4e678c6b9543bfbeacb9.png', extension='.png', mime_type='image/png', size=354757), File(dify_model_identity='__dify__file__', id=None, tenant_id='ff222508-ecdf-4890-acdc-f8ec194a3628', type=<FileType.IMAGE: 'image'>, transfer_method=<FileTransferMethod.TOOL_FILE: 'tool_file'>, remote_url=None, related_id='d1ddee8a-6ba7-4b56-a28d-2e8863583bb1', filename='4c285a3c95c0436483917d15ee1951c3.png', extension='.png', mime_type='image/png', size=346694)] id='74690aff-1a49-473d-a817-9fb492bfa201' name='files' description='' selector=['1736231102100', 'files'], please provide a list. ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 18:21:25 -05:00
Author
Owner

@crazywoola commented on GitHub (Jan 8, 2025):

image Try this

Images.yml.zip

@crazywoola commented on GitHub (Jan 8, 2025): <img width="1493" alt="image" src="https://github.com/user-attachments/assets/474fe6ab-6a0f-473f-8356-af64470ef595" /> Try this [Images.yml.zip](https://github.com/user-attachments/files/18347571/Images.yml.zip)
Author
Owner

@cr7Por commented on GitHub (Jan 8, 2025):

1736341789955
is there any difference between sys.files and ComfyUI.files?

@cr7Por commented on GitHub (Jan 8, 2025): ![1736341789955](https://github.com/user-attachments/assets/02f16e95-9040-42b3-83d6-14563e9c7d69) is there any difference between sys.files and ComfyUI.files?
Author
Owner

@cr7Por commented on GitHub (Jan 8, 2025):

I am using ver 0.14.2,I think ver 0.15.0 fixed this issue

@cr7Por commented on GitHub (Jan 8, 2025): I am using ver 0.14.2,I think ver 0.15.0 fixed this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7599