Files
ragflow/internal
bohdansolovie e0f0eb277d Fix upload stream handling to prevent truncated files (#14267)
## 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
2026-04-22 16:32:38 +08:00
..
2026-03-04 19:17:16 +08:00
2026-04-21 21:31:50 +08:00
2026-04-09 20:04:06 +08:00
2026-03-23 15:40:35 +08:00
2026-04-21 21:31:50 +08:00
2026-04-21 21:31:50 +08:00
2026-04-21 21:31:50 +08:00