Hi, i am trying to serve downloading links for my APK download website through r2 storage.
I followed all mentioned guide here:
Also i allowed bucket to public and already connect a subdomain for r2.
Public bucket url:
Connected domain: cdn.gamenewsmania.in
File i want to access: (testing file as png)
But showing error
404 The specified key does not exist. And xml file error.
Please help me to solve this problem.
Any news on your side?
Tangential but related: while trying to upload a ~400MB file, I got an error message pointing to
Cloudflare Status - Customer impacting issue related to R2 Storage's CopyObject API
But this was 10 days ago and is listed as resolved.
I’m fairly new to R2 and kind of lost for now.
October 8, 2022, 6:14am
There’s not enough information to go off here - take a screenshot of your buckets public domain settings.
This just redirects to your root domain.
I got an error message
What was the actual error message?
Thanks for popping in.
Sorry for the delay.
Here’s my Bucket Access config:
And here’s what I get when visiting
I have tried to disallow+re-allow, but got the same result. At least it’s consistent.
Here’s the error message mentioned previously:
I get this when trying to upload a 407 MB file using Cyberduck. But this is probably worthy of another tread… Cyberduck might not be fully compliant with the S3 API.
October 18, 2022, 10:37pm
If you’re not providing a file path then that’s expected - public buckets do not have listing.
First you need to choose a subdomain for r2 bucket.
example.com is your main domain
So click on CONNECT DOMAIN
Now refresh the page and set bucket access to Public. Go to object and upload a file.
My file name is - 1654691.webp
So CDN url is -
OK, got it! Thank you,
We simply need to add the file path (from the root of the bucket) to the Public Bucket URL.
For the sake of completeness, I’ll add to
@user17043 comment’s that custom domain remains optional. It works on
.r2.dev as well. Although, I’ve seen emails containing
.dev links moved to spam by Gmail. Custom domain may be worth it in some scenarios.