Is it possible to transfer file output from Code node to other nodes?
Qingyuan Liu
•
Feb 26, 2025
For now, file can be transfer between nodes.But how can i output file to user?By uploading file to s3 and generate a url to user?I mean how to output multi media data to user,not just text data, but image or file, etc.
evanchen
Team•
Feb 27, 2025
After the file is uploaded, it can be passed as a file variable in the node, or a file variable (tool node) can be returned after processing, and you will see the file preview in the output results, and it supports download. Taking the conversion of a PDF to MD with a three-node workflow as an example
guanglinke
•
Mar 12, 2025
i can’t cite the file variable in the code execution node. I only can create the variable as file.name, file. type, file. size, etc. but the file. content
Log in to comment and vote
Comments7
Good Wood
Apr 1, 2025
How is the progress going now?
Good Wood
Apr 1, 2025
https://github.com/langgenius/dify/issues/17203
Hon Kit Kok
Feb 27, 2025
Is it possible to transfer file output from Code node to other nodes?
Qingyuan Liu
Feb 26, 2025
For now, file can be transfer between nodes.But how can i output file to user?By uploading file to s3 and generate a url to user?I mean how to output multi media data to user,not just text data, but image or file, etc.
evanchen
Feb 27, 2025
After the file is uploaded, it can be passed as a file variable in the node, or a file variable (tool node) can be returned after processing, and you will see the file preview in the output results, and it supports download. Taking the conversion of a PDF to MD with a three-node workflow as an example
guanglinke
Mar 12, 2025
i can’t cite the file variable in the code execution node. I only can create the variable as file.name, file. type, file. size, etc. but the file. content
未来的自己遇见
Feb 20, 2025
what’s this?