TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to directly upload files to Amazon S3 from your client side web app

194 pointsby tadrujover 12 years ago

10 comments

mjtokellyover 12 years ago
Direct uploading like this has been possible for at least two years. However, in our tests it turned out that Amazon was silently losing some files &#62;100MB (and almost all files ~1GB).<p>On the AWS forums it was clear that AWS was aware of this consistent problem, but was not able to fix it, and not willing to document it.<p>They eventually released "multipart upload", which remains the only reliable way to get large files to S3. Unfortunately, multipart upload is nearly impossible to implement as a web app (short of resorting to e.g. Java).
评论 #4855509 未加载
评论 #4855352 未加载
评论 #4855286 未加载
评论 #4855304 未加载
评论 #4856701 未加载
brettcvzover 12 years ago
Alternatively, use Filepicker.io.<p>filepicker.store(myFile, {location: "S3"}, function(FPFile){console.log("File stored in S3 at "+FPFile.key+" and available at "+FPFile.url);});
评论 #4856186 未加载
评论 #4855053 未加载
评论 #4857530 未加载
评论 #4855375 未加载
philfreoover 12 years ago
Thanks for posting... I was looking for something just like this:<p><a href="https://github.com/tadruj/s3upload-coffee-javascript" rel="nofollow">https://github.com/tadruj/s3upload-coffee-javascript</a>
评论 #4856047 未加载
ayushgtaover 12 years ago
Thanks for posting this. I was looking at adding uploads just this morning, so this is very timely. It looks like if you combine the direct upload to S3 as outlined in this article with bitline (<a href="http://www.blitline.com/" rel="nofollow">http://www.blitline.com/</a>), you get some pretty cool abilities. I especially like that bitline supports batch operation (for example create five sizes of my image) in one call.
modartsover 12 years ago
Tangentially related, but does anyone know of an easy way to push a github repo to an S3 bucket (configured as a public site)?<p>I'm pretty new at git/github, but understand that the solution may involve a post commit hook that somehow calls an S3 file upload service.
评论 #4855124 未加载
评论 #4855758 未加载
secabeenover 12 years ago
Here's the other page on the AWS documentation on this: <a href="http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html" rel="nofollow">http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentic...</a>
dgoodladover 12 years ago
I did a demo similar to this a few months ago:<p><a href="https://github.com/dgoodlad/s3-photo-upload-demo" rel="nofollow">https://github.com/dgoodlad/s3-photo-upload-demo</a><p><a href="http://s3-photo-upload-demo.throwawayapp.com" rel="nofollow">http://s3-photo-upload-demo.throwawayapp.com</a>
vinhboyover 12 years ago
Last week I was trying to figure out how to do this with dropbox. Anyone know a way?
评论 #4855117 未加载
pswensonover 12 years ago
Coolest would be an ability to have 1) a great filepicker UI (drag target + multi file upload w/ progress bar) 2) resizing/thumbnails in the browser 3) no server side other than s3<p>guessing #2 isn't possible?
评论 #4856861 未加载
pudover 12 years ago
Any recommendations for how to show a progress-indicator to the user during a direct-to-S3 upload?
评论 #4856275 未加载