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

Upload file in chunks not working for zipped files #26

Closed
davedavemckay opened this issue Aug 12, 2024 · 0 comments · Fixed by #27
Closed

Upload file in chunks not working for zipped files #26

davedavemckay opened this issue Aug 12, 2024 · 0 comments · Fixed by #27
Assignees
Labels
bug Something isn't working

Comments

@davedavemckay
Copy link
Collaborator

Large in-memory zip files should be treated like large files and uploaded in chunks, however, this throws FileNotFoundError.

Offending code:

for i in range(chunk_count):
                        start = i * chunk_size
                        end = min(start + chunk_size, file_data_size)
                        part_number = i + 1
                        with open(filename, 'rb') as f:
                            f.seek(start)
                            chunk_data = f.read(end - start)

Cannot open(filename, 'rb') as no file exists on disk.

@davedavemckay davedavemckay added the bug Something isn't working label Aug 12, 2024
@davedavemckay davedavemckay self-assigned this Aug 12, 2024
@davedavemckay davedavemckay linked a pull request Aug 12, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant