Skip to content

Fix/upload 2gb file#313

Open
AlexisMora wants to merge 3 commits intomainfrom
fix/upload-2gb-file
Open

Fix/upload 2gb file#313
AlexisMora wants to merge 3 commits intomainfrom
fix/upload-2gb-file

Conversation

@AlexisMora
Copy link
Copy Markdown

What is Changed / Added

Fixed a bug where, when trying to to read a file bigger than 2GB, we where loading the entire file into memory just to slice out the requested chunk to be read causing the eror:

RangeError: File size (2147483648) is greater than 2 GB (ERR_FS_FILE_TOO_LARGE)

Instead of reading the whole file into memory, we now read only the requested chunk directly from disk using fs.read() with explicit offset and length. TemporalFileChunkReader and its DI registration were removed entirely. NodeTemporalFileRepository.find() now populates a contentFilePath field on TemporalFile so the read callback can access the disk path directly instead

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.

1 participant