Search code examples
webamazon-s3aws-lambdamultipartform-data

How to upload >5GB file using multipart API of S3 right from the browser?


I have tried the PUT request by XMLHttpRequest. There is a browser-side limitation that doesn't allow me to upload files larger than 2GB. Then I have tried the POST request from an HTML form that doesn't require Javascript side preprocessing. It has 5GB upload size limitation in a single operation.

AWS recommended multipart upload in larger upload scenarios. That requires files to chunk down then upload into pieces. How to do it right from the browser, when the file size is greater than 10GB.


Solution

  • You can use chucks in combination with signed URLs. See this link for more details https://github.com/prestonlimlianjie/aws-s3-multipart-presigned-upload.