[英]AWS S3 transferutility UploadAsync succeeds but does not create file
[英]AWS S3 : TransferUtility dose not contain the definition for UploadAsync in asp.net
使用以下代码获取错误
TransferUtility不包含UploadAsync的定义
TransferUtility fileTransferUtility = new TransferUtility(s3Client);
TransferUtilityUploadRequest uploadRequest = new TransferUtilityUploadRequest
{
BucketName = "bucketname",
FilePath = "foldername",
Key = "filename",
InputStream = "file input Stream"
};
uploadRequest.UploadProgressEvent +=
new EventHandler<UploadProgressArgs>(uploadRequest_UploadPartProgressEvent);
await fileTransferUtility.UploadAsync(uploadRequest);
最后我得到了解决方案,我使用的是版本3.3.102.9的AWSSDK.S3和版本4.0的.Net
要使用UploadAsync()
它需要3.3.102.11版本的AWSSDK.S3,它需要.Net 4.5或更高版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.