This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { |