Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how the stream from 'got' Lib use for form-data? #522

Open
zzlPetrichor opened this issue Nov 28, 2021 · 2 comments · May be fixed by #562
Open

how the stream from 'got' Lib use for form-data? #522

zzlPetrichor opened this issue Nov 28, 2021 · 2 comments · May be fixed by #562

Comments

@zzlPetrichor
Copy link

'Got' is one of network library for nodejs.
let stream = got.stream(url)
I fill the stream gotted by 'got' into form-data as form.append('file', stream)
but i got an error.

@PavelLoparev
Copy link

Seems like this lib only allows fs.ReadStreams(

@icecreamparlor
Copy link

I opened a Pull Request which can solve this problem

#562

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 a pull request may close this issue.

3 participants