-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP Request with sys.file in Form-Data Results in Empty Files #12752
Comments
Hello @11qqq-dr! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this issue together! The issue you're experiencing with The To address this, you might want to check the implementation of file handling in your setup or consider using the file format as a workaround until the issue is resolved. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hey @11qqq-dr! It looks like you're trying to reach out, but I'm not quite sure what you need help with. I'm here to assist with bugs, technical questions, and engineering knowledge. If there's something specific you need, feel free to ask! If you think I should have answered this request, you can always reach out to the Dosu Team. 😊 To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
|
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Cloud, Self Hosted (Docker), Self Hosted (Source)
Steps to reproduce
Issue Description:
When making an HTTP request using sys.file as a parameter with form-data format, the file content is always empty. However, when switching to the file format, a single file can be successfully sent. This issue is easy to reproduce by simply using sys.file under an HTTP request. I’m using version 0.15.1.
I have encountered this issue both on cloud and self-hosted setups.
Create an HTTP request that uses sys.file as a parameter.
Select form-data as the request format.
Observe that the file content is empty.
Switch to file format and verify that the file can be sent successfully.
✔️ Expected Behavior
Files should be properly sent when using sys.file with form-data.
❌ Actual Behavior
Files are empty when using sys.file with form-data.
The text was updated successfully, but these errors were encountered: