<p>Oli Bon from Craft Support suggested to use <code>{site.handle}</code> when you define your field (not the volume), which have worked perfectly fine.</p>

CC BY-SA 4.0
2019-06-17T16:08:05.157Z
2019-06-17T23:41:15.240Z
2019-06-17T23:41:15.240Z
Lukigi
<p>I've tried</p>

<pre><code>/{{currentSite.handle}}/
</code></pre>

<p>but this uses current site handle, not the site I'm currently editing. Is there a way to dynamically set folder to currently edited site?</p>

<assets><upload><multi-site>
How to restrict uploads to currently edited site
# How to restrict uploads to currently edited site

(Asked by: username_0 on 2019-06-12)

I've tried
/{{currentSite.handle}}/

but this uses current site handle, not the site I'm currently editing. Is there a way to dynamically set folder to currently edited site?

**Tags:** assets, upload, multi-site


---

## 1 answers

### Answer by username_0 on 2019-06-17. Score: 1 | Accepted answer

Oli Bon from Craft Support suggested to use `{site.handle}` when you define your field (not the volume), which have worked perfectly fine.


---

