0

It seems like the way to go is a class Upload in package @aws-sdk/lib-storage. It's a class that used to be called ManagedUpload and which supports multipart uploads. However when trying to import @aws-sdk/lib-storage, I get the error below, so apparently the package only works on Node, not the browser. enter image description here

For the browser, what is the best alternative for someone who wants to implement multipart uploads to S3?

Ivan
  • 1,317
  • 13
  • 23
  • See [instructions](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html#welcome_web) for using the v3 JavaScript SDK in the browser. Alternatively, you could use v2 but I'd go with v3 if you can. – jarmod Sep 02 '21 at 20:54
  • @jarmod I'm using next.js/webpack. Someone just pointed out this issue to me: https://github.com/aws/aws-sdk-js-v3/issues/2564 - it sounds like there's no easy workaround, so yeah, probably will try v2. – Ivan Sep 02 '21 at 20:57

0 Answers0