Skip to content

Instantly share code, notes, and snippets.

View olayenca's full-sized avatar
🎯
Focusing

Olayenca olayenca

🎯
Focusing
View GitHub Profile
@olayenca
olayenca / aws-multipartUpload.js
Last active June 19, 2020 17:00 — forked from sevastos/aws-multipartUpload.js
Example AWS S3 Multipart Upload with aws-sdk for Node.js- Retries to upload failing parts
const AWS = require('aws-sdk');
const {
red, green, yellow,
} = require('kleur');
const s3 = new AWS.S3();
const partSize = 1024 * 1024 * 5;
const multipartMap = {
Parts: [],
};