When a knowledge base document is downloaded, the document content is missing #15232
Open
5 tasks done
Labels
🐞 bug
Something isn't working
Self Checks
Dify version
dify 0.15.3 1.0.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
In this file,
/api/controllers/files/image_preview.py
delete the code
if upload_file.size > 0:
response.headers["Content-Length"] = str(upload_file.size)
It will work fine!!!
✔️ Expected Behavior
下载知识库库文档
❌ Actual Behavior
使用流式下载,相应头Content-Length出错
The text was updated successfully, but these errors were encountered: