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,
})
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,
})