-
Sorry this is more of a question than a bug report. When doing a streamed fs.createReadStream(fileInput).pipe(got.stream.put(url, options, function(err, data, res)).on('response', function(res){
console.log(res);
})); That doesn't work. Neither does this: fs.createReadStream(fileInput).pipe(got.stream.put(url, options, function(err, data, res){
this.on('response', function(response){
console.log(response);
});
})); Do you have any examples of how to do this? |
Beta Was this translation helpful? Give feedback.
Answered by
floatdrop
Sep 15, 2015
Replies: 2 comments
-
@Jakobud afaik you can't mix callback mode with stream mode. fs.createReadStream(fileInput)
.pipe(got.stream.put(url, options))
.on('response', (res) => { });
.pipe(process.stdout); Such questions are better asked at Stack Overflow |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sindresorhus
-
Okay that makes sense. thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jakobud afaik you can't mix callback mode with stream mode.
Such questions are better asked at Stack Overflow