Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
Uploading smaller files (on the order of Kbs to several Mbs is accurate). Uploading a large file (268Mb) resulting in inaccurate bytes being reported to the callback - it showed the bytes uploaded as 4.43Gb.
What I Did
Did some further digging, and looked at behavior of the boto3 upload in comparison - it looks like every time it calls the callback it sends the amount of bytes sent since the last time it called the callback, not the cumulative total, which it looks like what the aioboto3 upload is doing.
Also, note - the behavior of the download callbacks matches the original boto3, which is to callback with the bytes since last callback.
Here's some sample code (assuming the ~/.aws/credentials file is setup, and self._bucket matches the bucket name you want to push to)
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
Uploading smaller files (on the order of Kbs to several Mbs is accurate). Uploading a large file (268Mb) resulting in inaccurate bytes being reported to the callback - it showed the bytes uploaded as 4.43Gb.
What I Did
Did some further digging, and looked at behavior of the boto3 upload in comparison - it looks like every time it calls the callback it sends the amount of bytes sent since the last time it called the callback, not the cumulative total, which it looks like what the aioboto3 upload is doing.
Also, note - the behavior of the download callbacks matches the original boto3, which is to callback with the bytes since last callback.
Here's some sample code (assuming the
~/.aws/credentials
file is setup, andself._bucket
matches the bucket name you want to push to)