diff --git a/sdk/src/Services/S3/Custom/Model/GetObjectResponse.cs b/sdk/src/Services/S3/Custom/Model/GetObjectResponse.cs index 775dab69777f..62a21876be5f 100644 --- a/sdk/src/Services/S3/Custom/Model/GetObjectResponse.cs +++ b/sdk/src/Services/S3/Custom/Model/GetObjectResponse.cs @@ -466,7 +466,7 @@ public void WriteResponseStreamToFile(string filePath, bool append) // Encrypted objects may have size smaller than the total amount of data transfered due to padding. // Instead of changing the file size or the total downloaded size, pass a flag that indicate that the transfer is complete. - this.OnRaiseProgressEvent(filePath, 0, current, this.ContentLength, completed:true); + this.OnRaiseProgressEvent(filePath, totalIncrementTransferred, current, this.ContentLength, completed:true); } } @@ -625,7 +625,7 @@ await downloadStream.WriteAsync(buffer, 0, bytesRead) // Encrypted objects may have size smaller than the total amount of data trasnfered due to padding. // Instead of changing the file size or the total downloaded size, pass a flag that indicate that the transfer is complete. - this.OnRaiseProgressEvent(filePath, 0, current, this.ContentLength, completed:true); + this.OnRaiseProgressEvent(filePath, totalIncrementTransferred, current, this.ContentLength, completed:true); } finally { diff --git a/sdk/src/Services/S3/Custom/Model/_pcl/GetObjectResponse.pcl.cs b/sdk/src/Services/S3/Custom/Model/_pcl/GetObjectResponse.pcl.cs index 42d92dbbbf1e..07c3ecd01fd9 100644 --- a/sdk/src/Services/S3/Custom/Model/_pcl/GetObjectResponse.pcl.cs +++ b/sdk/src/Services/S3/Custom/Model/_pcl/GetObjectResponse.pcl.cs @@ -68,7 +68,7 @@ public partial class GetObjectResponse // Encrypted objects may have size smaller than the total amount of data transfered due to padding. // Instead of changing the file size or the total downloaded size, pass a flag that indicate that the transfer is complete. - this.OnRaiseProgressEvent(filePath, 0, current, this.ContentLength, completed:true); + this.OnRaiseProgressEvent(filePath, totalIncrementTransferred, current, this.ContentLength, completed:true); } }