Use streams api to upload large file to r2 through worker?

Hi Team,

due to the worker limit, we could only upload max. 100mb to r2 through worker using script from here:

but it will crash the worker once the upload file exceed this limit, can we use streams api to implement this large file upload?

cheers,