Skip to content

Added writeStream support for uploadSession - #31

Open
steffanhalv wants to merge 11 commits into
dkatavic:masterfrom
steffanhalv:master
Open

Added writeStream support for uploadSession#31
steffanhalv wants to merge 11 commits into
dkatavic:masterfrom
steffanhalv:master

Conversation

@steffanhalv

Copy link
Copy Markdown
Collaborator

Fixes #28

}
params.readableStream.resume();
}).catch(e => {
console.log('err')

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove log

*/

function uploadSession(params, progress = () => {}) {
function uploadSession(params, progress, writeStream, cb) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

progress is failing for me as it is required now. If you rebase from master it will default to progress = () => {} and wont break existing code

@dkatavic

Copy link
Copy Markdown
Owner

This looks great, thanks! Would you mind writing an e2e test for a writable stream? There is a documentation for e2e tests (lacking) here ./test and example from @namdien177 #29

I can help you out with writing it (or write it if you are stuck / out of free time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upload writeStream

2 participants