![](/img/trans.png)
[英]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.