I want to get the link of the file (or file name is also fine) after I uploaded my image to S3. I upload using below code and it worked.
s3Bucket.putObject(data, function(err, data){
if (err) {
console.log(err);
res.send({result:0});
} else {
res.send({result:1});
console.log(data)
}
});
But in the callback data, it has only 1 property, the etag. In the doc it clearly stated it has other objects, so how do I get the path of the uploaded file?