Skip to content

fix(txt): add stream() to RemoteFile to fix large TXT import on desktop#3502

Merged
chrox merged 1 commit intomainfrom
fix/large-txt-import-3495
Mar 9, 2026
Merged

fix(txt): add stream() to RemoteFile to fix large TXT import on desktop#3502
chrox merged 1 commit intomainfrom
fix/large-txt-import-3495

Conversation

@chrox
Copy link
Copy Markdown
Collaborator

@chrox chrox commented Mar 9, 2026

closes #3495

RemoteFile (used on all desktop platforms) extended File([]) with empty data and overrode slice(), text(), arrayBuffer() but not stream(). The large file path (>8MB) introduced in #3320 uses file.stream() to read content incrementally, which returned empty data from the base File class, causing "No chapters detected" for large TXT files.

…op, closes #3495

RemoteFile (used on all desktop platforms) extended File([]) with empty
data and overrode slice(), text(), arrayBuffer() but not stream(). The
large file path (>8MB) introduced in #3320 uses file.stream() to read
content incrementally, which returned empty data from the base File
class, causing "No chapters detected" for large TXT files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chrox chrox merged commit 5646e0c into main Mar 9, 2026
3 checks passed
@chrox chrox deleted the fix/large-txt-import-3495 branch March 9, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows version fails to import large .txt files with "No chapters detected" error

1 participant