Multipart upload to Amazon S3 using Javascript in Browser

无人久伴 提交于 2021-01-28 10:01:46

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!