Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Does Cloudflare R2 support chunk merging directly on the server?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Does Cloudflare R2 support chunk merging directly on the server?

Hi everyone,

I’m exploring Cloudflare R2 for a project and was wondering if it supports uploading file chunks (e.g., in a multi-part upload scenario) and merging them directly on R2. Essentially, instead of merging the chunks client-side or on an intermediary server, can the merging process happen directly within R2 after uploading the chunks?

Thanks in advance for any insights or documentation references!

Comments

  • Yes it natively supports multipart uploads with automatic server-side merging of chunks (5MB-5GB per part, max 10,000 parts) when you complete the upload, eliminating the need for client-side or intermediary server processing.

    https://developers.cloudflare.com/r2/objects/multipart-objects/

    Thanked by 2EthanZou vr10
  • @indiankesh said:
    Yes it natively supports multipart uploads with automatic server-side merging of chunks (5MB-5GB per part, max 10,000 parts) when you complete the upload, eliminating the need for client-side or intermediary server processing.

    https://developers.cloudflare.com/r2/objects/multipart-objects/

    Thank you so much for the quick and detailed response! That’s awesome! This feature is going to be a huge help in offloading work from my local web server — definitely saves a lot of effort and resources on our end. Really appreciate the info and the link!

  • @EthanZou said:

    @indiankesh said:
    Yes it natively supports multipart uploads with automatic server-side merging of chunks (5MB-5GB per part, max 10,000 parts) when you complete the upload, eliminating the need for client-side or intermediary server processing.

    https://developers.cloudflare.com/r2/objects/multipart-objects/

    Thank you so much for the quick and detailed response! That’s awesome! This feature is going to be a huge help in offloading work from my local web server — definitely saves a lot of effort and resources on our end. Really appreciate the info and the link!

    You're welcome. I use R2 very much and love it hence happy to answer.

  • @indiankesh said:

    @EthanZou said:

    @indiankesh said:
    Yes it natively supports multipart uploads with automatic server-side merging of chunks (5MB-5GB per part, max 10,000 parts) when you complete the upload, eliminating the need for client-side or intermediary server processing.

    https://developers.cloudflare.com/r2/objects/multipart-objects/

    Thank you so much for the quick and detailed response! That’s awesome! This feature is going to be a huge help in offloading work from my local web server — definitely saves a lot of effort and resources on our end. Really appreciate the info and the link!

    You're welcome. I use R2 very much and love it hence happy to answer.

    Thanks again!
    When comparing directly uploading and merging chunks on Cloudflare R2 versus handling chunk uploads and merging on a local web server before uploading to R2, and considering the costs of R2 API operations versus local server resources, do you think the former is more cost-effective overall? Would love to hear your perspective!

  • indiankeshindiankesh Member
    edited January 6

    Well, IMHO, direct R2 multipart uploads are more cost-effective than local server handling due to eliminated infrastructure costs, zero egress fees, and generous free-tier allowances, despite slightly higher API operation costs.

  • @indiankesh said:
    Well, IMHO, direct R2 multipart uploads are more cost-effective than local server handling due to eliminated infrastructure costs, zero egress fees, and generous free-tier allowances, despite slightly higher API operation costs.

    Thanks so much for sharing your insights!

  • @EthanZou said:

    @indiankesh said:
    Well, IMHO, direct R2 multipart uploads are more cost-effective than local server handling due to eliminated infrastructure costs, zero egress fees, and generous free-tier allowances, despite slightly higher API operation costs.

    Thanks so much for sharing your insights!

    You're welcome.

Sign In or Register to comment.