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

Fix chunked file upload #1464

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jessie-ross
Copy link

@jessie-ross jessie-ross commented Oct 23, 2024

Jupyter has manual upload system instead of using a standard form-multipart upload.

In the browser we manually chunk and upload files via separate PUT requests, and then in the code referenced in this PR, we save those chunks from the separate requests.

A significant issue is that requests can be lost or out of order, making the uploader fundamentally untrustworthy, but that isn't the focus of the PR.

There is a bug currently where files being uploaded with more than one chunk are only saving the last chunk, I've found this is due to overwriting after receiving each chunk, instead of appending.

This PR fixes that bug by adding a separate append function.

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