-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Problem
Both readFileStreamOperation() and handleReadStream() call readFile() to get metadata, which reads the entire file content into memory. This causes two critical issues:
- Inherits 10MB size limit: Stream operations fail on files >10MB despite being designed for streaming large files
- Performance overhead: Large files are read twice (once for metadata, once for actual streaming)
Affected Code
file-service.ts:1395-readFileStreamOperation()callsthis.read()file-handler.ts:107-handleReadStream()callsthis.fileService.readFile()
Impact
- Stream API cannot handle files larger than 10MB
- Unnecessary memory consumption and CPU cycles
- Increased latency before streaming begins
Metadata
Metadata
Assignees
Labels
No labels