How to upload to S3 with Pause/Resume support?

后端 未结 7 2029
日久生厌
日久生厌 2020-12-30 15:31

I would like to know how to upload a file to Amazon S3 with \'Pause and Resume\' support? (Via a web browser).

Are there any sample web applications available? Any p

7条回答
  •  失恋的感觉
    2020-12-30 15:52

    You should build it using the multipart upload API. Here's the link for Java:

    http://docs.amazonwebservices.com/AmazonS3/2006-03-01/dev/mpListPartsJavaAPI.html

    The idea would be to initiate a multi-part upload, start uploading parts (whose size would be based on the client's transfer rate) and whenever the user pauses the upload, stop uploading parts. You won't have byte by byte pause granularity, but I suspect the user would not notice that.

提交回复
热议问题