Uploading large file to R2 using worker
# workers-help
s
Hi, I wanted to know if I create a worker that uploads a large file (multiple GBs) to R2 and it takes a long time (lets say above 20 minutes), will the worker time out? I understand that there are reasons to think about multi-part here but I just wanted to know the answer to this independently of multipart considerations. Thanks @Sid | R2 FYI
k
The issue with large single request uploads is that they can't be resumed and don't really have any fault tolerance
If there's a network blip within those 20 minutes, you need to start again from byte 1
It also depends how you plan to get that file to the Worker - if it's with a request, then Workers are bound to your zone's body limit and that's not more than 500MB unless you're on an Enterprise plan
s
got it.
just trying to figure out what the best way to get a large file to R2 is
without having to write special code in clients