Skip to content

Instantly share code, notes, and snippets.

View kgalgat117's full-sized avatar
💭
...

Karan Galgat kgalgat117

💭
...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kgalgat117 on github.
  • I am kgalgat117 (https://keybase.io/kgalgat117) on keybase.
  • I have a public key ASA8MiIUIknIAwzwZeQCD-hRuzrx80CPxeYFbEKp0racpAo

To claim this, I am signing this object:

@kgalgat117
kgalgat117 / s3-file-upload.js
Created October 20, 2018 07:17 — forked from keithweaver/s3-file-upload.js
S3 File Upload to AWS S3
const AWS = require('aws-sdk');
const Busboy = require('busboy');
const BUCKET_NAME = '';
const IAM_USER_KEY = '';
const IAM_USER_SECRET = '';
function uploadToS3(file) {
let s3bucket = new AWS.S3({
accessKeyId: IAM_USER_KEY,