Skip to content

Commit 61ad154

Browse files
Merge pull request #87 from iogi/patch-1
fix a putStream() example code
2 parents cbc1ec5 + 97ddf5d commit 61ad154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ let fs = require('fs'); // requires filesystem module
151151
let stream = fs.createReadStream('./logo.png'); //path to local file
152152
client
153153
.api('/me/drive/root/children/logo.png/content') // path to the destination in OneDrive
154-
.put(stream, (err) => {
154+
.putStream(stream, (err) => {
155155
console.log(err);
156156
});
157157
````
@@ -351,4 +351,4 @@ Copyright (c) Microsoft Corporation. All rights reserved.
351351
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
352352

353353
## Third Party Notices
354-
See [Third Party Notices](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/THIRD%20PARTY%20NOTICES) for information on the packages that are included in the [package.json](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/package.json)
354+
See [Third Party Notices](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/THIRD%20PARTY%20NOTICES) for information on the packages that are included in the [package.json](https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/master/package.json)

0 commit comments

Comments
 (0)