mock-aws-s3 icon indicating copy to clipboard operation
mock-aws-s3 copied to clipboard

Stream on finish for putObject should pass back location, key, and bucket

Open dmcmorris opened this issue 4 years ago • 0 comments

Currently when a readable stream passed into the Body finishes, the one call back with only a boolean is fired: https://github.com/MathieuLoutre/mock-aws-s3/blob/6b5aa02d2f4c902db14a1cfd2e03ce0a10204594/lib/mock.js#L487

this should return the location, key and bucket just as the Buffer does:

done(null, { Location: dest, Key: search.Key, Bucket: search.Bucket })

dmcmorris avatar Apr 13 '20 20:04 dmcmorris