<p>It's because of how Craft resolves dynamic paths (paths with {variables}) in them. For freshly created Matrix blocks haven't been saved yet and therefore don't have an {owner} yet.</p>

<p>If a dynamic path cannot be resolved, then Craft will point it to a temporary folder that is unique per user per field, but, as soon as you save the Entry and the Matrix block has an {owner}, it will resolve to where it should and all the Assets from the temporary folder that were selected will be move to the resolved folder.</p>

<p>Any Assets that have not been selected will remain in the temporary folder. This also holds true for unsaved Entries if you're using {slug}, for example.</p>

CC BY-SA 3.0
2015-05-14T13:39:35.800Z
Hi Andris, Seems odd to have the inconsistency in the modal window for the client, given that the entry is already saved, so the owner has been established. At any rate, thanks for the feedback.
Paula
CC BY-SA 3.0
2015-05-14T17:39:23.237Z
Well, while it seems inconsistent in modals, it's exactly consistent on a technical level :) We'll be addressing this in Craft 3.0, but it'll be a while until it's out..
Andris Sevcenko
CC BY-SA 3.0
2015-05-19T00:32:05.027Z
Hmmm. Thw channel is to store businesses in a directory, and there is an Image matrix to allow the client to load a varied number of photos for each business. If the client adds the photos via the Assets tab (from the top nav bar) to that business's subdirectory, right now there is no way they can then view these photos from the business's entry as options to actually associate with that business via the modal. None of the current files are listed, even though they are already saved and associated with an existing entry. Sorry if I'm missing something, but that's pretty basic functionality.
Paula
CC BY-SA 3.0
2015-05-14T05:04:19.223Z
2015-05-14T05:04:19.223Z
Andris Sevcenko
<p>For two channels that restricts uploads to subdirectory/{owner.slug}, when I want to add an image in an existing entry, the Add an Asset modal window doesn't list the existing images (this is a matrix field that supports multiple images). All other cases where the restricted directory isn't a dynamic asset folder work fine. I've updated Asset Indexes and Cleared Caches, but still no luck. Any idea what's up? Thanks.</p>

CC BY-SA 3.0
2015-05-05T17:25:22.713Z
I thinks it's a bug and you should contact P&T directly with that. It'd be great if you could update here and tell us how things turned out ...
carlcs
<assets><matrix>
Current assets don't display in Add an Asset modal for matrix field; using {owner.slug} in path
# Current assets don't display in Add an Asset modal for matrix field; using {owner.slug} in path

(Asked by: username_0 on 2015-05-03)

For two channels that restricts uploads to subdirectory/{owner.slug}, when I want to add an image in an existing entry, the Add an Asset modal window doesn't list the existing images (this is a matrix field that supports multiple images). All other cases where the restricted directory isn't a dynamic asset folder work fine. I've updated Asset Indexes and Cleared Caches, but still no luck. Any idea what's up? Thanks.

**Tags:** assets, matrix
> **Comments:**
> **username_1**: I thinks it's a bug and you should contact P&T directly with that. It'd be great if you could update here and tell us how things turned out ...  

---

## 1 answers

### Answer by username_2 on 2015-05-14. Score: 1 | Accepted answer

It's because of how Craft resolves dynamic paths (paths with {variables}) in them. For freshly created Matrix blocks haven't been saved yet and therefore don't have an {owner} yet.

If a dynamic path cannot be resolved, then Craft will point it to a temporary folder that is unique per user per field, but, as soon as you save the Entry and the Matrix block has an {owner}, it will resolve to where it should and all the Assets from the temporary folder that were selected will be move to the resolved folder.

Any Assets that have not been selected will remain in the temporary folder. This also holds true for unsaved Entries if you're using {slug}, for example.

> **Comments:**
> **username_0**: Hi Andris, Seems odd to have the inconsistency in the modal window for the client, given that the entry is already saved, so the owner has been established. At any rate, thanks for the feedback.  
> **username_2**: Well, while it seems inconsistent in modals, it's exactly consistent on a technical level :) We'll be addressing this in Craft 3.0, but it'll be a while until it's out..  
> **username_0**: Hmmm. Thw channel is to store businesses in a directory, and there is an Image matrix to allow the client to load a varied number of photos for each business. If the client adds the photos via the Assets tab (from the top nav bar) to that business's subdirectory, right now there is no way they can then view these photos from the business's entry as options to actually associate with that business via the modal. None of the current files are listed, even though they are already saved and associated with an existing entry. Sorry if I'm missing something, but that's pretty basic functionality.  

---

