You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to store the metadata from the POST request, a GCS object needs to be created, since the metadata isn't stored in a resumable URI. To fix that, GCSDataStore.create() pipes an empty stream to create an empty GCS object, containing the data.
If we maintain the GCS upload id, (passed back in the 'x-guploader-uploadid' header) to use the same resumable URI, the content type won't match in GCSDataStore.write(), and GCS will delete the object:
Error: The uploaded data did not match the data from the server. As a precaution, the file has been deleted. To be sure the content is the same, you should try uploading the file again
So, right now, the Upload-Offset header does not translate through to the gcloud-node package as a resume session, but rather a replacement upload to the same object.
Resuming an upload will currently replace the GCS object with the new data piped in, and override the starting bytes of the file at the resumed offset 😢 .
The text was updated successfully, but these errors were encountered:
* master: (72 commits)
Update all dependencies
Remove coveralls & update coverage script
Remove .travis.yml
Setup GitHub Actions
Update package-lock with npm audit fix
Bump aws-sdk from 2.761.0 to 2.814.0 (#197)
Bump to v0.4.0
Add metadata parsing and stringification functions
Implement creation-with-upload extension
Implement GET handler
Fix issues with GCS datastore tests
Implement resumable uploads with GCS (#37)
Bump handlebars from 4.7.6 to 4.7.7 (#178)
Bump lodash from 4.17.20 to 4.17.21 (#179)
Bump url-parse from 1.4.7 to 1.5.1 (#180)
Bump date-and-time from 0.14.1 to 0.14.2 (#175)
Bump y18n from 4.0.0 to 4.0.1 (#176)
Use new URL for tus demo server
Upgrade dependencies and drop Node.js v8 support (#173)
Bump node-fetch from 2.3.0 to 2.6.1
...
In order to store the metadata from the
POST
request, a GCS object needs to be created, since the metadata isn't stored in a resumable URI. To fix that,GCSDataStore.create()
pipes an empty stream to create an empty GCS object, containing the data.If we maintain the GCS upload id, (passed back in the
'x-guploader-uploadid'
header) to use the same resumable URI, the content type won't match inGCSDataStore.write()
, and GCS will delete the object:So, right now, the
Upload-Offset
header does not translate through to thegcloud-node
package as a resume session, but rather a replacement upload to the same object.Resuming an upload will currently replace the GCS object with the new data piped in, and override the starting bytes of the file at the resumed offset 😢 .
The text was updated successfully, but these errors were encountered: