Permalink
Browse files

Fix some more S3 examples

  • Loading branch information...
1 parent 852df2c commit 4f053fd82243f368b8a077b4c0f03c51a8e0d904 @lsegal lsegal committed Dec 4, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.md
  2. +1 −1 doc-src/guide/Examples.md
View
@@ -43,7 +43,7 @@ AWS.config.update({region: 'us-east-1'});
var s3 = new AWS.S3();
s3.client.createBucket({Bucket: 'myBucket'}).done(function(resp) {
var data = {Bucket: 'myBucket', Key: 'myKey', Body: 'Hello!'};
- s3.putObject(data).done(function(resp) {
+ s3.client.putObject(data).done(function(resp) {
console.log("Successfully uploaded data to myBucket/myKey");
});
});
@@ -37,7 +37,7 @@ object 'myKey' of bucket 'myBucket':
var s3 = new AWS.S3();
s3.client.createBucket({Bucket: 'myBucket'}).done(function(resp) {
var data = {Bucket: 'myBucket', Key: 'myKey', Body: 'Hello!'};
- s3.putObject(data).done(function(resp) {
+ s3.client.putObject(data).done(function(resp) {
console.log("Successfully uploaded data to myBucket/myKey");
});
});

0 comments on commit 4f053fd

Please sign in to comment.