mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 13:45:52 +03:00
[PR #373] [MERGED] Support undocumented resumable upload API #560
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fsouza/fake-gcs-server/pull/373
Author: @mheffner
Created: 11/30/2020
Status: ✅ Merged
Merged: 12/23/2020
Merged by: @fsouza
Base:
main← Head:feature/resumable-upload-api-v2📝 Commits (3)
5100f8eSimple handling of resumable upload protocolbfc5725Add test for undoc resumable upload api799f6f5Fix lint on uploadURL name📊 Changes
2 files changed (+94 additions, -3 deletions)
View changed files
📝
fakestorage/upload.go(+21 -3)📝
fakestorage/upload_test.go(+73 -0)📄 Description
This is a simple handling of the resumable upload protocol, minimally supporting the client implementation from: https://github.com/googleapis/google-api-ruby-client/blob/master/lib/google/apis/core/upload.rb. This protocol closely follows the Photo's API protocol documented here: https://developers.google.com/photos/library/guides/resumable-uploads. This is a known undocumented API: https://github.com/googleapis/google-api-ruby-client/issues/311.
This does not implement the query method or resumable uploads from partial uploaded content. It is assumed that the entire upload is performed as a single chunk successfully.
Fixes: #371
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.