Skip to content

Commit

Permalink
Merge pull request #4 from cortezcristian/cc/fix-upload-timeout
Browse files Browse the repository at this point in the history
Change putObject in favor of upload
  • Loading branch information
cortezcristian committed Jul 31, 2018
2 parents b2f44d8 + 9cebef5 commit 33cd5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Bucket.prototype.uploadFile = function(customParams) {

// console.log("AWS UPLOAD==>", params);

var putObjectPromise = promisify(S3.putObject).bind(S3);
var putObjectPromise = promisify(S3.upload).bind(S3);
return new Promise(function (resolve, reject) {
return putObjectPromise(params)
.then(function(response) {
Expand Down

0 comments on commit 33cd5d1

Please sign in to comment.