R2 `Provided readable stream must have a known length` from workers
I would like to stream a file to R2 that's being created by iterating over items in memory and JSON-stringifying them (reduce memory consumption by not double-buffering them in memory)
However I'm getting the error:
Is there a way I can stream data to R2 without knowing the exact content length ahead of time?
1 Reply
this is a local test, so maybe you can't do this with local testing?
Even with the s3 api? S3 should support that iirc
or if I can pre-calculate the size, can I somehow tell it that?
seems this works for telling the length:
oooh ill try that