1

Is it possible to send a stream using the JavaScript fetch API?

For example:

const stream = new ReadableStream(…) // for example, as returned by `File.stream()`
fetch('https://example.com/do-upload', {
  method: 'POST',
  body: stream,
})
David Wolever
  • 148,955
  • 89
  • 346
  • 502

0 Answers0