I have written a simple function to handle upload of files in my sails.js app.
let upload = file.upload((err, uploadedFiles) => { if (err) { return res.s