[PR #373] [MERGED] Support undocumented resumable upload API #560

Closed
opened 2026-03-03 12:30:36 +03:00 by kerem · 0 comments
Owner

📋 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: mainHead: feature/resumable-upload-api-v2


📝 Commits (3)

  • 5100f8e Simple handling of resumable upload protocol
  • bfc5725 Add test for undoc resumable upload api
  • 799f6f5 Fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/fsouza/fake-gcs-server/pull/373 **Author:** [@mheffner](https://github.com/mheffner) **Created:** 11/30/2020 **Status:** ✅ Merged **Merged:** 12/23/2020 **Merged by:** [@fsouza](https://github.com/fsouza) **Base:** `main` ← **Head:** `feature/resumable-upload-api-v2` --- ### 📝 Commits (3) - [`5100f8e`](https://github.com/fsouza/fake-gcs-server/commit/5100f8e5914bb611131270ecb0c24e02710abea6) Simple handling of resumable upload protocol - [`bfc5725`](https://github.com/fsouza/fake-gcs-server/commit/bfc57258ff7b3f7bcb147d4138a8c1114511ce54) Add test for undoc resumable upload api - [`799f6f5`](https://github.com/fsouza/fake-gcs-server/commit/799f6f55444ef549c3ecf8940312f6356e00bd8b) Fix lint on uploadURL name ### 📊 Changes **2 files changed** (+94 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `fakestorage/upload.go` (+21 -3) 📝 `fakestorage/upload_test.go` (+73 -0) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 12:30:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/fake-gcs-server#560
No description provided.