图片上传成功了;调用运行接口 v1/workflows/run失败 #13555

Closed
opened 2026-02-21 19:12:43 -05:00 by yindo · 1 comment
Owner

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

v1.3.1

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

图片上传成功了;调用运行接口 v1/workflows/run

入参

{
"inputs": {
"picture": {
"transfer_method": "local_file",
"upload_file_id": "3d98214f-1e69-4e4e-9351-ca01e2886f35",
"type": "image",
"url": ""
}
},
"response_mode": "streaming",
"user": "1111"
}

返回错误 {
"code": "invalid_param",
"message": "picture in input form must be a list of files",
"status": 400
}

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zhujie1990 on GitHub (Apr 29, 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 v1.3.1 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce 图片上传成功了;调用运行接口 v1/workflows/run 入参 { "inputs": { "picture": { "transfer_method": "local_file", "upload_file_id": "3d98214f-1e69-4e4e-9351-ca01e2886f35", "type": "image", "url": "" } }, "response_mode": "streaming", "user": "1111" } 返回错误 { "code": "invalid_param", "message": "picture in input form must be a list of files", "status": 400 } ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:12:43 -05:00
yindo closed this issue 2026-02-21 19:12:43 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 29, 2025):

The error message "picture in input form must be a list of files" indicates that the API expects the "picture" parameter to be provided as a list of files, even if it contains only one file. To resolve this issue, you should format the "picture" input as a list. Here's how you can adjust your input:

{
    "inputs": {
        "picture": [{
            "transfer_method": "local_file",
            "upload_file_id": "3d98214f-1e69-4e4e-9351-ca01e2886f35",
            "type": "image",
            "url": ""
        }]
    },
    "response_mode": "streaming",
    "user": "1111"
}

Ensure that the "picture" parameter is structured as a list, even if it contains only one file object [1].

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 (Apr 29, 2025): <!-- Answer --> The error message "picture in input form must be a list of files" indicates that the API expects the "picture" parameter to be provided as a list of files, even if it contains only one file. To resolve this issue, you should format the "picture" input as a list. Here's how you can adjust your input: ```json { "inputs": { "picture": [{ "transfer_method": "local_file", "upload_file_id": "3d98214f-1e69-4e4e-9351-ca01e2886f35", "type": "image", "url": "" }] }, "response_mode": "streaming", "user": "1111" } ``` Ensure that the "picture" parameter is structured as a list, even if it contains only one file object <sup>[[1]](https://github.com/langgenius/dify/blob/main/web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx)</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/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/a710fbf6-2457-4adf-94e4-dc7262692882?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13555