Skip to content
Browser File Uploads to S3
JavaScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client
config
helpers
.gitignore
LICENSE
README.md
package.json
s3.js
server.js

README.md

Demo of secure browser upload to S3

This is a supplement to the article Simplifying Browser Uploads By Bypassing The Middleman

How to run

You will need Node.js.

  • Get an AWS account

  • Create an S3 bucket

  • Create a new user in IAM Role Management who can upload video to your bucket. Save this generated key pair.

  • Edit config file (at ./config/config.js) with your configuration.

Sample config:

{
    accessKey: "AKIOPGTA25GJRUVB26QW",
    secretKey: "3WqBjXT4vAJUwGv5RbzASpljioHTINnLFK87",
    bucket: "my-bucket.ninetyone.com",
    region: "us-west-1"
};
  • Then run:
node server.js

and finally open http://localhost:3030 in your browser.

You can’t perform that action at this time.