# System upload not using s3 cdn url

**URL:** https://meta.discourse.org/t/system-upload-not-using-s3-cdn-url/100729
**Category:** Self-hosting
**Tags:** cdn, s3
**Created:** [October 29, 2018, 6:27am UTC](https://meta.discourse.org/t/system-upload-not-using-s3-cdn-url/100729 "2018-10-29T06:27:15Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![timkelty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/timkelty/32/158090_2.png) [@timkelty](https://meta.discourse.org/u/timkelty)
#### Post date: [October 8, 2019, 4:24pm UTC](https://meta.discourse.org/t/system-upload-not-using-s3-cdn-url/100729/10 "2019-10-08T16:24:41Z")

</div>

So I’m still confused here…even with my cloudfront url in the “s3 cdn url”, all uploaded images (in the preview or not) are using the `s3.dualstack` url and not my cloudfront/cdn url.

What am I missing?

Here are my settings:

 ![Screen_Shot_2019-10-08_at_12_11_10_PM](https://global.discourse-cdn.com/meta/original/3X/3/d/3de697f945100cd1549ea1fb22fa8dc7aea05a47.jpeg) `Preformatted text`

> [@sam](#):
>
> Yeah this is indeed the case, preview does not use CDN, hiding the S3 origin from clients is an unsupported setup atm, longer term I expect even more trouble when we support direct to s3 uploads

This seems like a bug, not a feature, as it _requires_ you to have public ACLs for your s3 bucket. Looks like it has been reported here years ago, but not fixed: [S3 CDN URL ignored when uploading into posts](https://meta.discourse.org/t/s3-cdn-url-ignored-when-uploading-into-posts/54898)

---

_[View the full topic](https://meta.discourse.org/t/system-upload-not-using-s3-cdn-url/100729)._
