Problems when uploading large files to Amazon S3

后端 未结 5 913
闹比i
闹比i 2020-12-24 14:41

I tried to use Amazon-SDK(Java) sample code S3TransferProgressSample.java to upload large files to Amazon-S3 storage (also posted here on AWS docs).

But

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-24 15:25

    I wanted to add a comment to Geoff Appleford's answer but SO wouldn't allow me to. In general his answer to use low level API works fine but even if we do now have a do-while loop the way for loop is designed there is in-built retry logic. In his code snippet the file position increases only when there is a success otherwise you are uploading the same part again.

提交回复
热议问题