Closed netdown closed 4 months ago
Latest commit: 52a08f87a33f66a6fe3dca146c55fe0fa9d25309
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Fixes #548.
Multichunk uploads are broken starting from @google-cloud/storage v7.6. The reason is that this PR introduces a CRC32 check if
File.createWriteStream
is called with anoffset
param set.Since tus-node-server does not rely on the internal resumable upload feature of GCS (which was actually broken below 7.6), there is no need to create the stream with the offset param at all. See docs: https://googleapis.dev/nodejs/storage/latest/global.html#CreateWriteStreamOptions