# Split CDN for user uploads possible?

**URL:** https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151
**Category:** Feature
**Tags:** pr-welcome
**Created:** [June 2, 2014, 1:08am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151 "2014-06-02T01:08:05Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![fierce](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fierce/32/31642_2.png) [@fierce](https://meta.discourse.org/u/fierce)
#### Post date: [June 2, 2014, 1:08am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/1 "2014-06-02T01:08:05Z")

</div>

Is it possible to split uploads to different hostnames for user uploads and images/css/js provided by Discourse itself? I don’t have the funds to serve 4-5MB+ each images off CDN, but will happily serve site assets off a CDN.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [June 2, 2014, 1:11am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/2 "2014-06-02T01:11:27Z")

</div>

This is a good point. @sam?

However note that 2mb is the max default image size allowed in stock Discourse.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 2, 2014, 1:15am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/3 "2014-06-02T01:15:26Z")

</div>

There is no way to do this at the moment, reasonable feature request though.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 22, 2015, 8:57am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/4 "2015-04-22T08:57:03Z")

</div>

I think this is something we’re gonna need internally soon @sam.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 28, 2017, 6:11pm UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/5 "2017-02-28T18:11:08Z")

</div>

We never really got around to this, I am not against adding such a feature perhaps someone in the community that needs to use this feature can send through a PR for: `disable_cdn_on_uploads` and `disable_cdn_on_avatars`

---

<div class="post-metadata">

### Author: ![frostydog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frostydog/32/68228_2.png) [@frostydog](https://meta.discourse.org/u/frostydog)
#### Post date: [February 28, 2017, 6:27pm UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/6 "2017-02-28T18:27:49Z")

</div>

+1 to the request, this would help us greatly. We’re comfortable using Cloudflare but having the option to use MaxCDN for user uploads would be great.

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:14am UTC](https://meta.discourse.org/t/split-cdn-for-user-uploads-possible/16151/7 "2025-12-04T11:14:25Z")

</div>


