Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-17T16:08:05.157Z
Answers.LastActivityDate: 2019-06-17T23:41:15.240Z
Answers.LastEditDate: 2019-06-17T23:41:15.240Z
Answers.UserDisplayName: Lukigi
Body: <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>
  
Tags: <assets><upload><multi-site>
Title: How to restrict uploads to currently edited site
ThreadText: # 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.
  
  
  ---
  
  