mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
## Summary - Replace single `Read()` call in Go upload service with `io.ReadAll()`. - Prevent potential truncated/corrupted file content during multipart upload. - Keep existing API behavior unchanged while fixing data integrity risk. ## Root Cause `io.Reader.Read()` may return fewer bytes than requested without an error. The previous implementation read once into a full buffer and assumed all bytes were populated. ## Test plan - Upload files of multiple sizes and verify uploaded content integrity. - Confirm upload endpoint still returns successful responses. - Verify downstream document parsing works on uploaded files. ## Issues Closes #14266