Write to R2 with ReadableStream
Im trying to write a ReadableStream to R2, however, I cannot pass a stream to the r2
and then saving it to R2 as follows:
Im seeing the entry
Am I using the stream pipes wrong?
Thank you
.put without giving it a fixed size first, so I am piping an email objects stream to a FixedLengthStream as so:and then saving it to R2 as follows:
Im seeing the entry
identifier in my R2 bucket, however the content is empty. message.rawSize is showing the number of bytes I would expect.Am I using the stream pipes wrong?
Thank you