Replies: 15 comments 24 replies
-
the I think the |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Are there any workarounds? |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
I need to provide an explanation regarding this issue: currently, File.url refers to the |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Now, the question is how we should handle these URLs that will expire soon. They might appear in the current chat, show up in logs, and users could even notice that these addresses quickly become inaccessible within the same conversation (if the chat lasts long enough). I don’t think opening temporary signed URLs is a very elegant solution. We need to find a more practical way to allow users to access the files. |
Beta Was this translation helpful? Give feedback.
-
I discovered that the Of course, if there's no intention to use the temporary URLs anymore, then my approach would indeed no longer be applicable. However, if we plan to continue using temporary URLs, I believe that no node should process a file for longer than the file URL's expiration time. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
In a real application, this function is important. For example, although Dify has word parsing capabilities, it does not sufficiently support some applications, such as splitting chapters using Python-doc tools. Therefore, at least one method should be provided to help users customize the process for their files. Alternatively, there could be a way for users to obtain the file path, which seems more reasonable for processing their uploaded files. |
Beta Was this translation helpful? Give feedback.
-
Currently, files can be used in DocumentExtractor and Built-in Tools, but they are not supported in OpenAPI-based Custom Tools. For Custom Tools, an alternative is to use the HTTP Request Node in Workflow or Chatflow to send files to your own service. However, this approach cannot be used within an Agent. It’s not necessary for every node to support file inputs, as not all nodes are designed to handle files. |
Beta Was this translation helpful? Give feedback.
-
The Custom Tool now supports file handling, thanks to @hjlarry in #10796. Give it a try! (in the main branch) |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce
✔️ Expected Behavior
get the correct file url
❌ Actual Behavior
not get the correct value
Beta Was this translation helpful? Give feedback.
All reactions