verify r2 upload using hash
I'm trying to implement a user file upload system with hash and size verification, along with streaming uploads to R2. The challenge I'm facing is that Workers have a 128MB memory limit, so I can't buffer the entire request. so I need to stream the upload to R2, but I'm struggling to find a way to cancel the upload if hash unmatched or size is not correct.
Any suggestions on how to approach this would be really helpful. Thank you!
Any suggestions on how to approach this would be really helpful. Thank you!