[GH-ISSUE #2048] signed URLs: Support insertObject with PUT requests #246

Closed
opened 2026-03-03 12:09:24 +03:00 by kerem · 1 comment
Owner

Originally created by @jstriebel on GitHub (Oct 16, 2025).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2048

GCS supports PUT requests to insert objects (not using the resumable upload protocol). However, the fake-gcs-server currently always assumes a resumable upload in these cases (using uploadFileContent instead of insertObject), and returns a 404 when submitting a PUT without an upload_id.

While POST is the canonical request for this according to the docs it would still be great to cover this edge-case in the fake-gcs-server IMO.

Originally created by @jstriebel on GitHub (Oct 16, 2025). Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/2048 GCS supports PUT requests to insert objects (not using the resumable upload protocol). However, the fake-gcs-server currently always assumes a resumable upload in these cases (using `uploadFileContent` instead of `insertObject`), and returns a 404 when submitting a PUT without an `upload_id`. While POST is the canonical request for this [according to the docs](https://cloud.google.com/storage/docs/json_api/v1/objects/insert#http-request) it would still be great to cover this edge-case in the fake-gcs-server IMO.
kerem closed this issue 2026-03-03 12:09:24 +03:00
Author
Owner

@jstriebel commented on GitHub (Oct 17, 2025):

I was using the JSON API instead of the XML API, it works as expected. Sorry for the noise!

<!-- gh-comment-id:3414216048 --> @jstriebel commented on GitHub (Oct 17, 2025): I was using the JSON API instead of the XML API, it works as expected. Sorry for the noise!
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#246
No description provided.