# JSON configuration files upload?

**URL:** <https://forum.ghost.org/t/json-configuration-files-upload/53554>\
**Category:** Self-hosting\
**Created:** [December 23, 2024, 5:02pm UTC](https://forum.ghost.org/t/json-configuration-files-upload/53554 "2024-12-23T17:02:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![metawops](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/metawops/32/13963_2.png) [@metawops](https://forum.ghost.org/u/metawops)\
**Post date:** [December 23, 2024, 5:02pm UTC](https://forum.ghost.org/t/json-configuration-files-upload/53554/1 "2024-12-23T17:02:16Z")

</div>

To configure some web component I need to upload a few JSON configuration files somewhere (“globally”) on my self-hosted Ghost blog.  
I’d then reference them in an embedded HTML/JS block where I want to embed the above mentioned web component.  
How would I do that?  
The only way to upload files I found so far is per post which is not what I want.

Thanks & happy holidays everyone! 🎄

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [December 23, 2024, 5:08pm UTC](https://forum.ghost.org/t/json-configuration-files-upload/53554/2 "2024-12-23T17:08:13Z")

</div>

Two options:

1. add them to the theme’s zip file, in the assets directory. They’ll be served at /assets/filename.

2. upload them in a post/page. You don’t have to publish it. They’ll get uploaded and have a url, regardless of what post you happen to be editing or whether you publish it. To figure out the url, preview the page and right click the file download link to get the url. Call from any other page/embedded js as needed.

---

<div class="post-metadata">

**Author:** ![metawops](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/metawops/32/13963_2.png) [@metawops](https://forum.ghost.org/u/metawops)\
**Post date:** [December 23, 2024, 5:25pm UTC](https://forum.ghost.org/t/json-configuration-files-upload/53554/3 "2024-12-23T17:25:54Z")

</div>

Awesome, @Cathy_Sarisky! 🤩 Will try that! Thanks so much for the blazingly fast reply! 🚤👍👍
