跳转到主内容

S3 GET或JEAD对象响应会将ContentEdit值更改为 小写

Views:
2
Visibility:
Public
Votes:
0
Category:
storagegrid<a>2009年703742</a>
Specialty:
esg
Last Updated:

适用场景

StorageGrid 11.4

问题描述

与AWS不同、S3 GET / HEAD对象响应会将Content放下 值更改为小写。
  • 要上载对象,请创建 内容-处理标题的filename键值并 将其载入。文件名是大写字母。

示例:

Object Upload: # aws s3 cp ABC.txt s3://demo/ --content-type "APPLICATION/OCTET-STREAM" --content-disposition "Attachment; filename=AAA.txt" --endpoint https://dc1-g1.demo.netapp.com:10443

clipboard_e32b7763c17f8da0de3e133f2a93d463f.png

  • 然后、创建对象的预签名URL、并尝试使用文件名在filename密钥中输入的文件名从客户端下载对象。此处的问题是、该文件以小写文件的形式下载。

示例:

# aws s3 presign s3://demo/ABC.txt --expires-in 3000 --endpoint https://dc1-g1.demo.netapp.com:10443

clipboard_eef4651592abf13899531593c491d5ba8.png

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.