TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Browser-Side Amazon S3 Uploads, Using CORS and JavaScript

58 点作者 BenjaminCoe超过 12 年前
With CORS you can now easily build web applications that use JavaScript and HTML5 to interact with resources in Amazon S3, enabling you to implement HTML5 drag and drop uploads to Amazon S3, show upload progress, or update content.

7 条评论

nodesocket超过 12 年前
Just finished building a drag and drop uploader feature for <a href="http://commando.io" rel="nofollow">http://commando.io</a>. I went back and forth between storing files in S3, on disk, or using database backed storage. Unfortunately CORS was not released yet, because if it was, I would have gone with S3.<p>I went MongoDB + GridFS. It has worked out well so far. Really like that I can store the meta-data right with the binary data in MongoDB, and can query and filter directly on the meta-data. Also, using a MongoDB replica set, I get automatic redundancy of files.<p>I made a quick demo video of the upload feature showing drag &#38; drop, and the files interface, check it out if you please: <a href="http://www.youtube.com/watch?v=ru7YZ2E65YU" rel="nofollow">http://www.youtube.com/watch?v=ru7YZ2E65YU</a>
carson超过 12 年前
I put together a FileAPI based uploader using signed PUTs. I hadn't gotten around to releasing it yet but here is a gist for those who might be interested: <a href="https://gist.github.com/3593744" rel="nofollow">https://gist.github.com/3593744</a>
BenjaminCoe超过 12 年前
With CORS, you can now easily build web applications that use JavaScript and HTML5 to interact with resources in Amazon S3, enabling you to implement HTML5 drag and drop uploads to Amazon S3, show upload progress, or update content
评论 #4465695 未加载
daemon13超过 12 年前
Good walk through.<p>How safe is it against abuse [i.e. MITM, dos]? Most probably I am missing smth, but if credentials are applied in browser, can user get hold of them and upload a couple of petabytes?
评论 #4466696 未加载
yummybear超过 12 年前
Any ideas whether this applies to CloudFront as well?
评论 #4466671 未加载
orijing超过 12 年前
How is cross-browser support? I hear IE8 and 9 still don't fully support CORS...
评论 #4465969 未加载
molecule超过 12 年前
nice write-up.<p>&#62; "choose the S3 option from your EC2 Management Console."<p>do you mean AWS Management Console?
评论 #4465653 未加载