I am trying to write a file uploader for Meteor framework. The principle is to split the fileon the client from an ArrayBuffer in small packets of 4096 bits that are sent to
Saving the file was as easy as creating a new Buffer with the Uint8Array object :
// chunk is the Uint8Array object fs.appendFile(path, Buffer.from(chunk), function (err) { if (err) { fut.throw(err); } else { fut.return(chunk.length); } });