aws-sdk-js-v3 icon indicating copy to clipboard operation
aws-sdk-js-v3 copied to clipboard

Add ability of breakpoint transmission to lib-storage

Open RichardLeeY opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

With aws-sdk/lib-storage , I can create a upload task to concurrently transfer data to S3 , and I can implement a process bar easily .That's really good for me. When I need to transfer video file larger than 1GB to S3 , Mostly All things go well. Sometimes for some network issues, the transmission stoped.How should I resume transmission from the breakpoint ? As we all know It will cost a long time if I start from the beginning.

Describe the solution you'd like

Add a new interface like resumeUpload, When the data transmission fail, I can resume the task by my uploadId.

Describe alternatives you've considered

By now, I have to hack with MultipartUploadCommand uploadPartCommand etc in aws-sdk/client-s3 . And unfortunately I didn't find a clear example of breakpoint transmission yet.

Additional context

RichardLeeY avatar Apr 02 '22 09:04 RichardLeeY

The S3 Transfer Manager in AWS SDK for Java v1 supports pause/resume. The application has to explicitly call pause though.

Blog post: https://aws.amazon.com/blogs/developer/pausing-and-resuming-transfers-using-transfer-manager/

trivikr avatar Apr 12 '22 18:04 trivikr