diff --git a/src/bucket.ts b/src/bucket.ts index 5f220c01a..ed73e1f21 100644 --- a/src/bucket.ts +++ b/src/bucket.ts @@ -3454,7 +3454,10 @@ class Bucket extends ServiceObject { return; } - options.resumable = fd.size > RESUMABLE_THRESHOLD; + if (fd.size <= RESUMABLE_THRESHOLD) { + // Only disable resumable uploads so createWriteStream still attempts them and falls back to simple upload. + options.resumable = false; + } upload(); });