c# – Get result from UploadAsync IAmazonS3 in .net core web api

I would like get response from UploadAsync .
For example if something happen while upload and i want to get response from upload method.
How can i get response? Below is my code

using (IAmazonS3 client = AWSClientFactory.CreateAmazonS3Client(RegionEndpoint.EUCentral1))
    MemoryStream ms = new MemoryStream();
    var fileTransferUtility = new TransferUtility(client);
    fileTransferUtility.UploadAsync(ms, bucketName, file.FileName);

Read more here: Source link