【问题标题】:Android AWS S3 SDK 2.2.16 TransferListener receiving incorrect onProgressChanged DataAndroid AWS S3 SDK 2.2.16 TransferListener接收不正确的onProgressChanged数据
【发布时间】: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


    【解决方案1】:

    这是一个已知错误,但已在 v2.2.19 中修复。见release notes。请升级 SDK。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-08
      • 1970-01-01
      • 2021-07-20
      相关资源
      最近更新 更多