AWS SDK for .net。如何设置PutObjectRequest文件名

时间:2018-03-08 23:56:20

标签: c# amazon-s3

https://docs.aws.amazon.com/sdkfornet/latest/apidocs/items/MS3IS3PutObjectPutObjectRequestNET35.html

我想使用MemoryStream来提供request.InputStream。如何设置S3在创建文件时使用的文件名?

1 个答案:

答案 0 :(得分:2)

您需要的属性是 "bullet": "round", "bulletBorderAlpha": 1, "bulletColor": "#FFFFFF", "bulletSize": 5, "hideBulletsCount": 50, "lineThickness": 2, "title": "red line", "useLineColorForBulletBorder": true, "valueField": "value", "balloonText": "<span style='font-size:18px;'>[[value]]</span>" ,这是来自您的存储桶根目录的相对路径,不包括最初的Key

例如:

/

请在此处查看PutObject sample 3