# Blackblaze&Cloudflare: image uploading works, but not showing in post

**URL:** https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089
**Category:** Self-hosting
**Created:** [September 21, 2021, 11:18am UTC](https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089 "2021-09-21T11:18:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tenzan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tenzan/32/42979_2.png) [@tenzan](https://meta.discourse.org/u/tenzan)
#### Post date: [September 21, 2021, 11:18am UTC](https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089/1 "2021-09-21T11:18:01Z")

</div>

It seems I screwed up with configuring CDN URL with Cloudflare.

I’m using Blackblaze as S3 bucket.

Image uploading works fine, but in post it shows incorrect path for an image, hence it’s not showing up. I guess this is due to wrong configuration with Cloudflare.

_Note: I haven’t done any changes to app.yml mentioned [here](https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916) and didn’t do any rebaking yet._

I created an example post at  
[https://kyrgyz.club/t/what-is-lorem-ipsum/28](https://kyrgyz.club/t/what-is-lorem-ipsum/28)

 ![Screen Shot 2021-09-21 at 20.04.44](https://global.discourse-cdn.com/meta/original/3X/8/4/8428a08dd672da26fc803294d876c5decfb8c507.png)

When I try to open an image in a tab, it’s trying to open image from the address  
`https://cdn.kyrgyz.club/original/1X/df20411cc37e6e627202d7cdc4d2e5e3cb077701.jpeg`

But correct URL is  
`https://f002.backblazeb2.com/file/kyrgyzclub-uploads-bucket/original/1X/df20411cc37e6e627202d7cdc4d2e5e3cb077701.jpeg`

 ![Screen Shot 2021-09-21 at 20.08.37](https://global.discourse-cdn.com/meta/original/3X/8/a/8a2ef614414e52158b6d5d2d3c6f048ed3cc02f6.png)

Now, let me show my settings.

**Discourse side**

 ![Screen Shot 2021-09-21 at 20.10.52](https://global.discourse-cdn.com/meta/original/3X/a/b/ab323f72a4fecab7805338179ae9b69b20ffc959.png)

**Cloudflare side**

 ![Screen Shot 2021-09-21 at 20.15.02](https://global.discourse-cdn.com/meta/original/3X/0/d/0d0e0c324683c84d23f109168b3b9bc51353c35e.png)

**Blackblaze side**

 ![Screen Shot 2021-09-21 at 20.16.40](https://global.discourse-cdn.com/meta/original/3X/5/9/59ddd591a197ee52a97463bcd051a5db7f9b9796.png)

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [September 21, 2021, 12:43pm UTC](https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089/2 "2021-09-21T12:43:38Z")

</div>

I think the CDN url (in Discourse) should point to the same path as the root of your bucket.

Try changing `s3 cdn url` from `https://cdn.kyrgyz.club` to `https://cdn.kyrgyz.club/file/kyrgyzclub-uploads-bucket` (because the CNAME points `cdn.kyrgyz.club` to the backblaze domain, `f002.backblazeb2.com`, not to your specific bucket).

The file: `https://f002.backblazeb2.com/file/kyrgyzclub-uploads-bucket/original/1X/df20411cc37e6e627202d7cdc4d2e5e3cb077701.jpeg`

Can be accessed at: `https://cdn.kyrgyz.club/file/kyrgyzclub-uploads-bucket/original/1X/df20411cc37e6e627202d7cdc4d2e5e3cb077701.jpeg`

---

<div class="post-metadata">

### Author: ![tenzan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tenzan/32/42979_2.png) [@tenzan](https://meta.discourse.org/u/tenzan)
#### Post date: [September 21, 2021, 12:47pm UTC](https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089/3 "2021-09-21T12:47:06Z")

</div>

Wow, thank you, Lucas!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 21, 2021, 12:47pm UTC](https://meta.discourse.org/t/blackblaze-cloudflare-image-uploading-works-but-not-showing-in-post/204089/4 "2021-10-21T12:47:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
