Skip to content

Commit

Permalink
fix wrong fPutObject example in README (#717)
Browse files Browse the repository at this point in the history
Fixes #716
  • Loading branch information
kanagarajkm authored and kannappanr committed Sep 5, 2018
1 parent ca0f575 commit d77f5c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ minioClient.makeBucket('europetrip', 'us-east-1', function(err) {

console.log('Bucket created successfully in "us-east-1".')

var metaData = {
'Content-Type': 'application/octet-stream',
'X-Amz-Meta-Testing': 1234,
'example': 5678
}
// Using fPutObject API upload your file to the bucket europetrip.
minioClient.fPutObject('europetrip', 'photos-europe.tar', file, 'application/octet-stream', function(err, etag) {
minioClient.fPutObject('europetrip', 'photos-europe.tar', file, metaData, function(err, etag) {
if (err) return console.log(err)
console.log('File uploaded successfully.')
});
Expand Down
7 changes: 6 additions & 1 deletion README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,13 @@ minioClient.makeBucket('europetrip', 'us-east-1', function(err) {

console.log('Bucket created successfully in "us-east-1".')

var metaData = {
'Content-Type': 'application/octet-stream',
'X-Amz-Meta-Testing': 1234,
'example': 5678
}
// Using fPutObject API upload your file to the bucket europetrip.
minioClient.fPutObject('europetrip', 'photos-europe.tar', file, 'application/octet-stream', function(err, etag) {
minioClient.fPutObject('europetrip', 'photos-europe.tar', file, metaData, function(err, etag) {
if (err) return console.log(err)
console.log('File uploaded successfully.')
});
Expand Down

0 comments on commit d77f5c1

Please sign in to comment.