Node.js---Amazon-S3
Node.js---Amazon-S3 copied to clipboard
Raw buffer being spit to log
Calling uploadFileToBucket() generates a big buffer object in the log.
<Buffer 48 54 54 50 2f 31 2e 31 20 34 30 33 20 46...
The problem line looks like this.
console.log(data);
To fix it I changed it to:
console.log(data.toString('ascii'));