Created
July 10, 2020 19:13
-
-
Save lmammino/adf739ef5dbccb795e405e224bdeef54 to your computer and use it in GitHub Desktop.
sample upload with PassThrough stream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function createUploadStream (filename) { | |
| const connector = new PassThrough() | |
| upload(filename, connector) | |
| return connector | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment