#22880Missing boundary when using multipart/form-data in HTTP Request component on Dify public cloud
Issue Details
Author
Self Checks
- I have read the Contributing Guide and Language Policy.
- 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, otherwise it will be closed.
- 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- Please do not modify this template :) and fill in all the required fields.
Dify version
1.7.0
Cloud or Self Hosted
Cloud
Steps to reproduce
- Create a new workflow in Dify public cloud
- In the Start component, add a file upload field (to receive the file input)
-
Add an HTTP Request component to the workflow
-
Configure the HTTP Request component to use POST method
-
Set Body to form-data
- Map the file from the Start component's upload field to the HTTP Request's file parameters
- Execute the workflow
✔️ Expected Behavior
The HTTP Request should properly format the multipart/form-data request with a valid boundary in the Content-Type header (e.g., multipart/form-data; boundary=--------------------------749422656485593958486831), allowing successful file uploads.
❌ Actual Behavior
While the request header includes Content-Type: multipart/form-data; boundary=----[random string], the actual request body does not contain the specified boundary strings to separate the content parts. This mismatch causes the server to reject the request with an error about invalid multipart formatting.