mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
[File] The URL returned by _backwards_invoke does not contain the tenant_id #1
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 @fujita-h on GitHub (Jan 11, 2025).
Summary
When I try to upload a file to the endpoint as follows, it fails:
Environment
Remote Plugin
Cause
https://github.com/langgenius/dify-plugin-sdks/blob/e764cd2d9e0225b9ac4f27d3e486ed0578b47a46/python/dify_plugin/invocations/file.py#L54-L62
The returnd url is
https://[snip]/files/upload/for-plugin?timestamp=[snip]&nonce=[snip]&sign=[snip]&user_id=[snip]However, this API requires a
tenant_idas shown below, and the API call fails.https://github.com/langgenius/dify/blob/28edbbac0b4f3da7403de1f00b6cf0a8e4c0e24b/api/controllers/files/upload.py#L26-L28
@Yeuoly commented on GitHub (Jan 14, 2025):
fixed https://github.com/langgenius/dify/pull/12734