Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug(file): downloading zip exceeding 4gb crashes app #709

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pl3lee
Copy link

@pl3lee pl3lee commented Dec 24, 2024

Hello! This is my first time contributing to an open source software, and it's also my first time working with nest, so please let me know if I'm not following best practices!

This PR fixes #708

This bug occurs because the ZIP file size exceeds the maximum buffer size that Node.js can handle in a single chunk.

I have removed the buffer conversion that was causing this bug, so that we directly return the readable stream from the storage service.

I have tested locally for shares larger than 4gb, and it doesn't crash now. The function streamToUint8Array is now unused, but I'm not sure if it will be used in the future, so I've left it in for now.

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.

🐛 Bug Report: Backend crashes when clicking on the "Download All" button for a share with size > 4gb
1 participant