langgenius / dify-docs

The open-source repo for docs.dify.ai
Creative Commons Attribution 4.0 International
197 stars 176 forks source link

sys.files cannot be accessed or referenced in nodes #307

Closed waterdropw closed 1 week ago

waterdropw commented 1 month ago

sys.files is default variable in input node, but it cannot be accessed or referenced in other nodes.

dosubot[bot] commented 1 month ago

Hey @waterdropw! 👋 I'm here to help you with any bugs, questions, or contributions while we wait for a human maintainer. Let's squash those bugs together!

The sys.files variable is indeed a default variable in the input node, primarily used for handling file uploads like images. However, there is no specific documentation or information available in the repository that explains why sys.files cannot be accessed or referenced in nodes other than the input node. It might be a design choice or a technical limitation, but this isn't explicitly documented in the available resources [1][2].

To continue talking to Dosu, mention @dosu.

AllenWriter commented 1 week ago

The sys.files variable can only be accessed by specific nodes, primarily: