Array[object] not usable in HTTP block #11892

Closed
opened 2026-02-21 19:04:35 -05:00 by yindo · 3 comments
Owner

Originally created by @zhangdahai112 on GitHub (Mar 20, 2025).

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

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Image
when it comes to http block , i planed to bring a img array which item is {"url" : "xxx.png"} to server, but i can't
Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zhangdahai112 on GitHub (Mar 20, 2025). ### 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 1.0.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/cf6a6730-1044-4202-9251-454c82f87117) when it comes to http block , i planed to bring a img array which item is {"url" : "xxx.png"} to server, but i can't ![Image](https://github.com/user-attachments/assets/2d07add7-6452-46fb-b086-d6ec45b8fb78) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:04:35 -05:00
yindo closed this issue 2026-02-21 19:04:36 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 20, 2025):

The Array[Object] should be usable in the HTTP block for sending an image array to the server. The files parameter in the request body is defined as an optional array[object], which can include image URLs. Each object in the array should have a type (e.g., image), a transfer_method (e.g., remote_url), and a url (e.g., "xxx.png"). Ensure that each object in the array is correctly structured as per the API documentation:

{
  "files": [
    {
      "type": "image",
      "transfer_method": "remote_url",
      "url": "xxx.png"
    }
  ]
}

If you are encountering issues, it might be due to incorrect formatting or missing required fields in the objects within the array. Additionally, ensure that the list does not exceed the maximum allowed length and that each element is a dictionary (object) [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 20, 2025): <!-- Answer --> The `Array[Object]` should be usable in the HTTP block for sending an image array to the server. The `files` parameter in the request body is defined as an optional `array[object]`, which can include image URLs. Each object in the array should have a `type` (e.g., `image`), a `transfer_method` (e.g., `remote_url`), and a `url` (e.g., `"xxx.png"`). Ensure that each object in the array is correctly structured as per the API documentation: ```json { "files": [ { "type": "image", "transfer_method": "remote_url", "url": "xxx.png" } ] } ``` If you are encountering issues, it might be due to incorrect formatting or missing required fields in the objects within the array. Additionally, ensure that the list does not exceed the maximum allowed length and that each element is a dictionary (object) <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/develop/template/template_workflow.ja.mdx)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/workflow/nodes/code/code_node.py)</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/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c7438c82-29c6-4877-934a-3c6665ac8662?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 20, 2025):

Files in the workflow are not like other types. So you can not use it like this.

@crazywoola commented on GitHub (Mar 20, 2025): Files in the workflow are not like other types. So you can not use it like this.
Author
Owner

@zhangdahai112 commented on GitHub (Mar 20, 2025):

i use

Image instead

Files in the workflow are not like other types. So you can not use it like this.

@zhangdahai112 commented on GitHub (Mar 20, 2025): i use ![Image](https://github.com/user-attachments/assets/9b74e881-e4f6-45c6-b8a2-111ef408385b) instead > Files in the workflow are not like other types. So you can not use it like this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#11892