We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24c318 commit 4fc3c0aCopy full SHA for 4fc3c0a
function/libs/s3.js
@@ -17,5 +17,6 @@ exports.download = function download(Bucket, Key) {
17
* @param { Buffer } Body
18
*/
19
exports.upload = function upload(Bucket, Key, Body) {
20
- return s3.putObject({ Bucket: Bucket, Key: Key, Body: Body }).promise();
+ return s3.putObject({ Bucket: Bucket, Key: Key, Body: Body })
21
+ .promise().then(_ => `s3://${Bucket}/${Key}`);
22
}
0 commit comments