Replies: 1 comment 10 replies
-
|
Dify does support passing remote file URLs via the API, but to avoid 400 errors and ensure the file info (including original filename) is available in your app, you need to follow a two-step process:
Troubleshooting tips:
Note: Let me know if you need example code for extracting the filename or handling the file object in your workflow! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Requirement Summary:
We need to pass a large file's (2-5GB) remote URL address and original filename to a Dify application, so automatic download is NOT required - the app should only receive the file information for subsequent processing in Chatflow. The original filename must be retrievable within the application.
Current Issue:
When using the
/v1/chat-messagesAPI endpoint with the following request, a 400 error occurs:Request:
Error Response:
{"code":"bad_request","message":"The browser (or proxy) sent a request that this server could not understand.","status":400}How should I solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions