Skip to content

Storage: upload_* does not send properties (need an extra patch) #1351

Closed
@sagarrakshe

Description

@sagarrakshe

Not able to set cache-control while uploading blobs. I tried this.

foo_blob = bucket.blob('sample.txt')
foo_blob.cache_control = 3600
foo_blob.content_type = 'text/plain'
foo_blob.upload_from_string('Sample Text')

But after uploading the property foo_blob.cache_control gets set to None again.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions