Skip to main content

Questions tagged [cloudflare-r2]

The tag has no usage guidance, but it has a tag wiki.

cloudflare-r2
0 votes
0 answers
11 views

Integrate svelte-image with Cloudflare pages + R2

I'm currently working on a SvelteKit project that is hosted on Cloudflare Pages. I want to optimize and serve images from Cloudflare R2 instead of directly from the /static directory. My goal is to ...
fevar's user avatar
  • 87
0 votes
1 answer
61 views

Download and view images from Cloudflare R2

I am working on Sveltekit app using Typescript and want to display the images from R2, using workers R2 API, in the custom image component. The following is the .svelte code <script lang="ts&...
Agraj Agranayak's user avatar
0 votes
0 answers
37 views

Laravel Job timeouts streaming large file from S3 to Cloudflare R2 despite increasing timeout to 60mins

Using Laravel v10 I'm attempting to stream PDF data from S3 to Cloudflare R2, using Laravel Filesystem along with league/flysystem-aws-s3-v3, this process is done via a dedicated queue. Most of the ...
PeteB's user avatar
  • 122
0 votes
0 answers
43 views

Strapi R2 Invalid bucket response

I am using the very simplest configuration according to the docs at https://market.strapi.io/providers/strapi-provider-cloudflare-r2 My configuration looks like this; export default ({ env }) => ({ ...
Linton Caldecott's user avatar
0 votes
0 answers
40 views

You are not authorized to view this object, Django + Cloudflare R2

im trying to use CloudFlare R2 to server static files from my django project, but im having "This object could not be viewed". I added custom domains, and allowed public view. I cant ...
Asinox's user avatar
  • 6,811
2 votes
0 answers
61 views

Cloudflare doesn't accept multiple bytes range

I have a large file deployed to R2, and want some portions of it. Accordingly to MDN, the Range header can specify multiple ranges in the form of Range: bytes=0-10, 20,50. Anyway, when I try to make ...
allevo's user avatar
  • 1,012
0 votes
0 answers
210 views

CORS Error Uploading File with Presigned URL (React/CloudFlare R2) - Preflight Response Issue

I'm encountering a CORS error when trying to upload a file using a presigned URL in my React application (using Axios) to CloudFlare R2 storage. The upload works fine in Postman, but the browser ...
Nazir Mudumane's user avatar
0 votes
0 answers
27 views

Axio post request Issues

I'm working on a Next.js application where I need to upload large files to a Cloudflare R2 bucket. I'm having some trouble implementing this functionality with axios. and have an error on every ...
Junior Seppo's user avatar
0 votes
1 answer
109 views

Does making an R2 bucket public and using a custom domain eliminate the need for a CORS policy to access its data?

I'm considering hosting video content on an R2 bucket and want to ensure seamless access to this content across different domains. My plan is to make the R2 bucket's access public and connect it to a ...
GorvGoyl's user avatar
  • 47.3k
1 vote
1 answer
214 views

CloudFlare R2 with Flutter

I want to use CloudFlre R2 as storage for my Flutter app. I have AccessKey, SecertKey and r2Token. Unfortunately, I cannot find a package or HTTP request to upload a file to an R2 bucket. I tried ...
jitendra purohit's user avatar
0 votes
1 answer
425 views

R2: Setting CORS policy with different methods per allowed-origins

I’m having trouble with setting the correct CORS policy on my bucket on Cloudflare's R2. What I want to achieve: the bucket may by accessed by via any webpage of any domain, but only with GET method ...
user1607016's user avatar
0 votes
1 answer
655 views

Trouble Accessing FetchEvent in Hono JS Context on Cloudflare Workers

I'm developing a Cloudflare Workers application using Hono JS and encountering an issue where I'm unable to access FetchEvent within the Hono context. The application works fine with itty router and ...
scouech's user avatar
  • 99
0 votes
0 answers
272 views

Cloudflare R2 bucket access using postman

I am looking for how to access the Cloudflare R2 bucket in Postman so i can understand and use it in my way. In other words; i want to know how can i access the r2 bucket and objects using the r2 url ...
Salman Sajid's user avatar
2 votes
1 answer
494 views

Why is my bucket name in my R2 object's key?

I am using Cloudflare R2 with @aws-sdk/client-s3 inside of a serverless function. Here I attempt to add an object to my bucket ('my-bucket'); import { S3Client, PutObjectCommand } from "@aws-sdk/...
12th's user avatar
  • 261
1 vote
2 answers
490 views

Can we set Cloudflare R2 cache-control max-age?

Can we set the Cache-Control HTTP response header for our Cloudflare R2 buckets & objects? I could not find options in the web UI nor the AWS CLI "s3" and "s3api" commands. I'm ...
anthumchris's user avatar
  • 8,878

15 30 50 per page