问题
I am working on a project that requires me to upload large files directly from the browser to Amazon S3 using javascript.
Does anyone know how to do it? Is there Amazon Javascript SDK that supports this?
回答1:
Try EvaporateJS. It has a large community and broad browser support. https://github.com/TTLabs/EvaporateJS.
回答2:
Use aws-sdk-js to directly upload to s3 from browser. In my case the file sizes could go up to 100Gb. I used multipart upload, very easy to use.
I had to upload in a private bucket, for authentication I used WebIdentityCredentials. You also have an option to use CognitoIdentityCredentials.
来源:https://stackoverflow.com/questions/45001862/multipart-upload-to-amazon-s3-using-javascript-in-browser