【问题标题】:Set all files in Google Cloud Storage bucket to gzip by default将 Google Cloud Storage 存储桶中的所有文件默认设置为 gzip
【发布时间】:2017-05-10 06:04:56
【问题描述】:

我正在尝试设置一个 Google Cloud Storage 存储桶,以便我上传的所有文件都会自动 gzip 并设置“内容编码:gzip”。

我根据Set all files in Google Cloud Storage Bucket to public by default 尝试了“gsutil defacl set public-read gs://bucket”,但没有成功。

有什么想法吗?

【问题讨论】:

    标签: google-cloud-storage


    【解决方案1】:

    默认情况下,无法将存储桶配置为自动上传 gzip 文件。一种可能性是在存储桶上配置对象更改通知,并通过读取新输入对象并编写压缩等效项然后删除原始对象来实现响应通知的代码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-07-03
      • 2020-05-05
      • 1970-01-01
      • 2017-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多