mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
cannot add file to chat/app in extension plugin #24
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jifanyangclare on GitHub (Apr 1, 2025).
I notices in dify plugin docs it says:
but I didn't see the
filesfield in my installed sdk code.And I found this commit several months ago which removed all
filesfieldCan you guys help update docs and indicate where developers can add files to chat/app in current version??
@jifanyangclare commented on GitHub (Apr 1, 2025):
cc author @Yeuoly
@Mairuis commented on GitHub (Dec 9, 2025):
Hi @jifanyangclare,
Thanks for raising this issue. The
filesparameter was intentionally removed from the SDK's app invocation methods. Here's the correct way to pass files when invoking an app from a plugin:Correct Usage
1. Upload the file first
2. Convert to app parameter format
3. Pass as an input variable
Important Note
The
sys.filesanduserinput.filessystem variables are being deprecated. Please use custom file-type input variables instead of relying on these system variables.Summary
filesparameter (it was removed)session.file.upload()inputsas file-type variablessys.filesanduserinput.filesare being deprecatedWe'll update the documentation to clarify this. Closing this issue as the current design is intentional.