# Add files to root directory

**URL:** https://meta.discourse.org/t/add-files-to-root-directory/86300
**Category:** Support
**Created:** [April 27, 2018, 11:53am UTC](https://meta.discourse.org/t/add-files-to-root-directory/86300 "2018-04-27T11:53:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Yoginth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yoginth/32/119994_2.png) [@Yoginth](https://meta.discourse.org/u/Yoginth)
#### Post date: [April 27, 2018, 11:53am UTC](https://meta.discourse.org/t/add-files-to-root-directory/86300/1 "2018-04-27T11:53:05Z")

</div>

How to upload files to my sites root directory ([https://example.com/file.txt](https://example.com/file.txt)), I’m trying to have [loader.io](http://loader.io) config in the Root directory, i used ./launcher enter app and kept my file in public directory however after updating my instance it is gone.

---

<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 27, 2018, 8:50pm UTC](https://meta.discourse.org/t/add-files-to-root-directory/86300/2 "2018-04-27T20:50:06Z")

</div>

It’s not possible; for example with Google Search Console validation, you use a DNS method of validation instead.

---

<div class="post-metadata">

### Author: ![fang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fang/32/268176_2.png) [@fang](https://meta.discourse.org/u/fang)
#### Post date: [July 29, 2022, 10:27am UTC](https://meta.discourse.org/t/add-files-to-root-directory/86300/3 "2022-07-29T10:27:48Z")

</div>

This is possible， with Cloudflare proxy and worker

1. proxy your website with cloudflare

2. create an HTTP handler service, respond with your loader-io code  

3. add the route to Routes in the worker’s triggers tab

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/b/6/bb63f8d07079220d50dc4062d11321329ad6a764.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/add-files-to-root-directory/86300/4 "2024-06-08T12:36:52Z")

</div>

This topic was automatically closed after 2234 days. New replies are no longer allowed.
