Skip to content

Commit bd075c8

Browse files
committed
fix: add name to query parameters for blob upload
1 parent 924b65f commit bd075c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

google/cloud/storage/blob.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,9 @@ def _do_multipart_upload(
18761876
if self.user_project is not None:
18771877
name_value_pairs.append(("userProject", self.user_project))
18781878

1879+
if self.name is not None:
1880+
name_value_pairs.append(("name", self.name))
1881+
18791882
# When a Customer Managed Encryption Key is used to encrypt Cloud Storage object
18801883
# at rest, object resource metadata will store the version of the Key Management
18811884
# Service cryptographic material. If a Blob instance with KMS Key metadata set is

0 commit comments

Comments
 (0)