Replies: 19 comments 39 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.
-
Is it possible to mount the |
Beta Was this translation helpful? Give feedback.
-
In my humble opinion, the current issue lies in the inability of the "url" field in the file type to be correctly output. Regardless of how the file is utilized within nodes—for instance, whether it bypasses url transmission in the future or a new node is introduced to handle it—this does not justify the current failure to properly recognize the "url" field. Moreover, if the "url" field is indeed necessary, there are, in my view, only two viable options: either use dynamic urls (which could involve temporary URLs or other methods of generation) or use static urls. To put it simply, if there is no intention to provide a urls externally, this field should not exist to confuse users. Otherwise, it should hold meaningful data rather than remaining empty or null as it does now. In fact, this opinion was previously expressed by @hjlarry , but it seems to have been overlooked. The team's focus has remained on finding ways to retrieve the file itself, rather than examining whether the fields provided in the file type are functioning as expected. We should not continue offering a malfunctioning field. If it remains broken, we should either fix it immediately or remove it altogether. |
Beta Was this translation helpful? Give feedback.
-
so we how to get file content? |
Beta Was this translation helpful? Give feedback.
-
Actually, after I receive pictures or documents, I need to call a third-party API through Dify, and when I transmit these files to the third-party API, I actually have no way to operate:
|
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