Skip to content

Instantly share code, notes, and snippets.

View andrepadez's full-sized avatar

André Alçada Padez andrepadez

View GitHub Profile
@andrepadez
andrepadez / gist:9132454
Last active July 11, 2023 20:12 — forked from NeCkEr/gist:9132397
Streamed Upload to S3 using busboy
var Busboy = require('busboy'); //A streaming parser for HTML form data: https://github.com/mscdex/busboy
var generateId = require('time-uuid');
//** Handler to recive file uploads via stream
module.exports.boUpload = {
method: 'POST',
path: '/upload/',
config:{
payload: 'stream'
},
handler: function (request) {