While using following code getting the error
TransferUtility does not contain the definition for 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);
Finally I got the solution, I was using AWSSDK.S3 of version 3.3.102.9 and .Net of version 4.0
To use UploadAsync()
It's required AWSSDK.S3 of 3.3.102.11 version and it's requires .Net version 4.5 or above.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.