Posted On: Oct 21, 2021
The Amplify JS library will now automatically segment large files into 5Mb chunks, and upload them using the Amazon S3 Multipart upload process. This method allows chunks to be uploaded in any order, and individual chunks can be re-transmitted if their upload fails or times out. Developers are able to provide callback logic to control how and when re-transmits should be attempted.
We also improved Typescript type coverage for all of the Storage category functionality within Amplify. Previously, developers would not see auto-suggest options for the parameters which control interaction with Amazon S3 buckets, like file uploads and downloads. Now, web developers who use Typescript with a modern code editor will see suggestions, and detailed warnings when they attempt to use invalid values for function parameters.
Developers can get started with Resumable Uploads today by adding the Storage category to their Amplify projects.