我可以配置上传文件到https://s3-ap-southeast-1.amazonaws.com/mybucket/等默认链接。我的代码就像
IAmazonS3 client;
using (client = Amazon.AWSClientFactory.CreateAmazonS3Client(S3Service.AwsAccessKey, S3Service.AwsSecretKey, RegionEndpoint.APSoutheast1))
{
var request = new PutObjectRequest()
{
BucketName = S3Service.BucketName,
CannedACL = S3CannedACL.PublicRead,
Key = string.Format("{0}", fileName),
InputStream = fileData
};
client.PutObject(request);
}
但是,当我的客户给我一个 Amazon S3 CloudFront域,如https://custom.com/
我无法找到将我的文件推送到此存储桶的解决方案。任何人都可以给我一个关键字或解决方案来解决这个问题吗?