mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[DOCS]: The knowledge base in the Dify pipeline cannot upload files via the API at present. It is recommended to update this feature as soon as possible. #250
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 @1756922564 on GitHub (Oct 16, 2025).
Type of Documentation Change
Content update
Documentation Page URL or Path
No response
Current Content
No response
Suggested Changes
目前看提供的api接口不能实现建议尽快更新。
Reason for Change
No response
Code of Conduct
@1756922564 commented on GitHub (Oct 16, 2025):
大家怎么通过api调用知识库的流水线解析文件呢
@dosubot[bot] commented on GitHub (Oct 16, 2025):
Hi @1756922564! I'm Dosu and I’m helping the dify-docs team.
目前 Dify 已经支持通过 API 上传文件到知识库流水线。你可以使用最新的 API 客户端中的
upload_pipeline_file接口来实现文件上传,上传后文件会自动进入知识库的解析和处理流程。相关 PR 见:#26401。具体用法建议参考 Dify Python SDK 的
KnowledgeBaseClient,其中upload_pipeline_file()方法就是为此设计的。如果需要进一步执行解析或 RAG 流水线,也可以用run_rag_pipeline()等接口。如果你用的是 HTTP API,可以参考
/files/upload端点,使用multipart/form-data方式上传文件,参数名为file,上传后系统会自动处理解析和入库。如需详细参数或示例代码,可以补充说明你用的是哪种语言或 SDK。
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@1756922564 commented on GitHub (Oct 16, 2025):
具体怎么调用呢 实现方式
@dosubot[bot] commented on GitHub (Oct 28, 2025):
Hi, @1756922564. I'm Dosu, and I'm helping the dify-docs team manage their backlog and am marking this issue as stale.
Issue Summary:
upload_pipeline_filemethod in the Python SDK or the/files/uploadHTTP endpoint.Next Steps:
Thank you for your understanding and contribution!