Skip to content

Commit

Permalink
docs: update README with the new onfido version (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnodet authored Aug 29, 2024
1 parent 7e605ef commit 4b3a2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ const blob = download.data.slice();
### File upload
For some common types of streams, like instances of `fs.ReadStream`, you can provide the stream directly:
File upload should use the provided FileTransfer class, e.g.:
```js
onfido.uploadDocument(
"passport",
"<APPLICANT_ID>",
fs.createReadStream("path/to/passport.png")
new FileTransfer(Buffer.from(document.buffer), document.filename)
);
```
Expand Down

0 comments on commit 4b3a2ae

Please sign in to comment.