Content-Type不是 自定义 元数据,而是
metadata用于此的。它具有自己的属性,可以这样设置:
bucket.put_object(Key='index.html', Body=data, ContentType='text/html')
注意:.put_object()
可以设定更多Content-Type
。查看其余的Boto3文档。

Content-Type不是 自定义 元数据,而是
metadata用于此的。它具有自己的属性,可以这样设置:
bucket.put_object(Key='index.html', Body=data, ContentType='text/html')
注意:.put_object()
可以设定更多Content-Type
。查看其余的Boto3文档。