Node.js: file upload buffers in memory and memory not freed up after upload is done
问题 Using Sails.js to upload images to Azure with this code: req.file('picture').upload({ adapter: require('skipper-azure'), key: storageAccount, secret: accessKey, container: 'default' }, function(err, files) { if(!err) { return res.json(cdn + files[0].fd); } else { return res.send(err); } }); I have 2 problems: Files are buffered to memory instead of being streamed The memory is not freed-up when file upload is done, is it a Node.js problem, Sails.js', or my problem? UPDATE When I upload a