Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Multi-chunk Upload Without contentLength Can Hang When fileSize % chunkSize != 0 #2073

@danielbankhead

Description

@danielbankhead

A multi-chunk resumable upload hangs when the chunkSize is not evenly divisible by the file size when a contentLength is not provided.

ACs:

  • Fix upload logic for this scenario
  • Fix unit test(s)
  • Add integration tests for the following scenarios:
    • fileSize % chunkSize != 0
    • fileSize < chunkSize

Metadata

Metadata

Labels

api: storageIssues related to the googleapis/nodejs-storage API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions