awslabs / aws-js-s3-explorer

AWS JavaScript S3 Explorer is a JavaScript application that uses AWS's JavaScript SDK and S3 APIs to make the contents of an S3 bucket easy to browse via a web browser.
Apache License 2.0
825 stars 276 forks source link

handling multipart #81

Closed darichailu closed 4 years ago

darichailu commented 4 years ago

can this solution handle multi-part upload/download for large files?

john-aws commented 4 years ago

Yes, we support multi-part upload and files larger than 5GB.

The solution uses the AWS JavaScript SDK's managed upload feature. This:

allows large buffers, blobs, or streams to be uploaded more easily and efficiently, both in Node.js and in the browser.

The new AWS.S3.upload() function intelligently detects when a buffer or stream can be split up into multiple parts and sent to S3 as a multipart upload.

We don't actually handle the download. That's the browser's responsibility when fetching a pre-signed URL of the object in question.