<p>The Default Upload Location setting only applies to drag-n-drop uploads, as well as front-end uploads if you are creating your own entry form with a <code>&lt;input type="file"/&gt;</code> input.</p>

<p>If you want to force files to be placed in a <code>{slug}</code> subfolder, you should check the "Restrict uploads to a single folder" checkbox in your Assets field's settings.</p>

CC BY-SA 3.0
2014-11-21T18:27:35.263Z
2014-11-21T18:27:35.263Z
Brad Bell
<p>Using Craft Pro 2.2.2601, I am finding the asset selection mechanic a little confusing from a UX perspective when I am using {slug} in the asset field's 'Default Upload Location' to place assets in correct subfolders. </p>

<p>When I drag assets directly onto an asset field, it places the asset in the specified subfolder correctly. However, when I click on the Add an Asset button, the asset dialog opens with the root asset folder selected, so clicking the Upload files button causes the file to be added to the root folder by default. When this happens, the {slug} subfolder is generated anyway, with no contents. </p>

<p>It would make more sense to me if this generated subfolder was automatically selected so that the asset is placed in there. Having to navigate down the directory structure manually is a bit annoying and fiddly, and if a client forgets to do this then they are left with an empty {slug} subfolder.</p>

<p>Is this a bug or intended behaviour?</p>

<assets><admin>
Should the initial selected subfolder in the 'Add an asset' dialog be the Default Upload Location?
# Should the initial selected subfolder in the 'Add an asset' dialog be the Default Upload Location?

(Asked by: username_0 on 2014-11-19)

Using Craft Pro 2.2.2601, I am finding the asset selection mechanic a little confusing from a UX perspective when I am using {slug} in the asset field's 'Default Upload Location' to place assets in correct subfolders.

When I drag assets directly onto an asset field, it places the asset in the specified subfolder correctly. However, when I click on the Add an Asset button, the asset dialog opens with the root asset folder selected, so clicking the Upload files button causes the file to be added to the root folder by default. When this happens, the {slug} subfolder is generated anyway, with no contents.

It would make more sense to me if this generated subfolder was automatically selected so that the asset is placed in there. Having to navigate down the directory structure manually is a bit annoying and fiddly, and if a client forgets to do this then they are left with an empty {slug} subfolder.

Is this a bug or intended behaviour?

**Tags:** assets, admin


---

## 1 answers

### Answer by username_1 on 2014-11-21. Score: 1

The Default Upload Location setting only applies to drag-n-drop uploads, as well as front-end uploads if you are creating your own entry form with a  input.

If you want to force files to be placed in a `{slug}` subfolder, you should check the "Restrict uploads to a single folder" checkbox in your Assets field's settings.


---

