Skip to content

Commit 6abe364

Browse files
committed
adds support for metadata during object creation
1 parent 0d623b8 commit 6abe364

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/gcp_storage_emulator/handlers/objects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def _create_resumable_upload(request, response, storage):
227227
object_id,
228228
content_type,
229229
content_length,
230+
metadata={**(request.data or {}), "name": object_id},
230231
)
231232
id = storage.create_resumable_upload(
232233
request.params["bucket_name"],

0 commit comments

Comments
 (0)