In the ever-evolving landscape of technology, staying ahead of the curve is imperative. At Transloadit, we pride ourselves on our agility and commitment to meeting the dynamic needs of our customers. Recently, we had the opportunity to showcase our dedication to customer satisfaction when a client approached us with a specific request regarding Cloudflare R2 support.

Adding support for Cloudflare R2

It all began when a customer reached out to our support team, asking whether we had a Robot for Cloudflare's R2 as they were looking for alternatives to DigitalOcean Spaces and Amazon S3. Unfortunately, at this point we lacked integration with the R2 platform, meaning that Transloadit wouldn't be a viable option for their file processing needs if they decided to make the switch.

However, not to back down from a challenge, our co-founder Tim let the customer know that we would deliver the feature within the coming weeks. This was on March 29.

Our co-founder Tim's initial response to the customer.

The following weekend was a four-day weekend due to Easter, as well as the start of Tim's vacation. However, as soon as Tim returned from his holiday, he immediately set out to work on Cloudflare support.

Our co-founder Tim's message letting the customer know that he started work on the Robot.

It then took only a single day before the feature was ready to be deployed and used by the customer.

Our co-founder Tim's message informing the customer the Robot was complete.

Of course, the job wasn't done entirely, since documentation and other surrounding tasks still needed to be completed. Still though, it took exactly seven days to go from the customer's initial ticket to a working deployed version that they could use in production. Now, we don't want to go as far as setting this as a benchmark for all future feature releases, but we are as committed as ever to delivering value to you as quickly as possible, so that you can focus on the core of your product.

Using the Cloudflare Robots

The Cloudflare R2 Robots are now available for everyone, so let's take a look at how you can integrate with /cloudflare/store and /cloudflare/import .

{
  "steps": {
    "imported": {
      "robot": "/cloudflare/import",
      "result": true,
      "credentials": "YOUR_CLOUDFLARE_R2_CREDENTIALS",
      "path": "my_source_folder/file.png"
    },
    "converted": {
      "use": ":original",
      "robot": "/image/resize",
      "result": true,
      "format": "jpg",
      "imagemagick_stack": "v3.0.0"
    },
    "exported": {
      "robot": "/cloudflare/store",
      "use": "converted",
      "result": true,
      "credentials": "YOUR_CLOUDFLARE_R2_CREDENTIALS",
      "path": "my_target_folder/file.jpg"
    }
  }
}

The Template above imports a file from Cloudflare R2, converts it to a JPG and then exports it back to a target folder in Cloudflare R2. This is a very simple Template just to demonstrate the premise, but if you want to sink your teeth into something a bit more substantial, check out our list of demos for a variety of different use cases.

What's next?

We are always looking for new ways to innovate, and we have plenty of new features we're hoping to show off soon. Make sure to sign up for the Dev Times below to stay updated on the latest, both with regard to Transloadit and the tech world in general.