Corrupt/truncated mp4 upload to S3 bucket using NodeJS and AWS S3
问题 I'm using fs.readFile to read in a local mp4 file of around 700KB, and AWS SDK to load the file onto my S3 bucket. The process works, but the file is corrupt, presumably truncated because the size of the resulting file on S3 is only around 500KB. The code I'm using works for images just fine. Just not working for mp4 files. Here's my code: fs.readFile(file_location, function (err, data) { if (err) { console.log('fs error': err); } else { var base64data = new Buffer(data, 'binary'); var params