【发布时间】:2016-11-07 17:09:40
【问题描述】:
问题在于 AWS S3 上传过程,当我尝试上传文件时,有时我收到的 bytesCurrent 比 bytesTotal 多,这使得进度计算超过 100%。但是当我检查设备上照片的大小、S3 存储和显示该文件的 bytesTotal 的日志时,它们都相同。让其他人看到 onProgressChanged 的这个问题。请告诉我。
@Override
public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {
// Calculate percentage here.
Log.d("Upload Status", "file id: " + id + ", bytesCurrent: " + bytesCurrent + ", bytesTotal: " + bytesTotal);
}
【问题讨论】:
标签: android amazon-web-services amazon-s3 aws-sdk