Upload to S3 via JavaScript
Published on by Eric L. Barnes
EvaporateJS is a javascript library for directly uploading files from a web browser to AWS S3, using S3’s multipart upload.
You have to admit this is neat.
EvaporateJS can resume an upload after a problem without having to start again at the beginning. For example, let’s say you’re uploading a 1000MB file, you’ve uploaded the first 900MBs, and then there is a problem on the network. Normally at this point you’d have to restart the upload from the beginning. Not so with EvaporateJS – it will only redo a small ~5MB chunk of the file, and then carry on from where it left off, and upload the final 100MB.
This is a beta release. It still needs lots more work and testing, but we do use it in production on videopixie.com, and it does reliably upload 20GB+ files.
JavaScript is going to take over the world.
Eric is the creator of Laravel News and has been covering Laravel since 2012.