<p>Craft has the ability to dynamically add subfolder paths to Assets when you are creating the Asset field in the control panel. </p>

<p>Tags like {slug} and {author.username} are some of the available options for creating the directories.</p>

<p>I know it has been brought up before and they have acknowledged the possibility. So who knows, maybe we will see it in 2.2? </p>

<p>For now, if organization is a concern I recommend using subfolders to keep it clean.</p>

<p><img src="https://i.sstatic.net/4DyEe.png" alt="asset field options"></p>

CC BY-SA 3.0
2014-07-15T08:49:15.107Z
Yes, I've set dynamic folder locations which is really useful. It's probably just the OCD side in me, but my files (images) will come from a wide range of sources, from different users etc, so I'd rather the files have consistent naming.
shorn
CC BY-SA 3.0
2014-07-15T09:03:02.333Z
Agreed, I am the same way and was one who asked this very question. I don't know what the have planned for 2.2 but I have a "feeling" a lot of great things for assets will be coming out with it ;)
Jason McCallister
CC BY-SA 3.0
2014-07-15T09:05:06.243Z
Here's hoping! I'd love to (for example) rename the files with the kind of flexibility there is in setting upload location. Fingers crossed. :)
shorn
CC BY-SA 3.0
2014-07-15T09:06:35.100Z
These guys always have a few tricks up their sleeves... I'm sure it will be another great release - on both developer and feature fronts.
Jason McCallister
CC BY-SA 3.0
2014-07-15T08:40:45.883Z
2014-07-15T08:40:45.883Z
Jason McCallister
<p>Is there any way to rename files upon there upload to an assets field? </p>

<p>I know I can hit the options of the file and rename manually, but was wondering if there was a way to do this automatically? i.e. renamed based on the entry ID.</p>

<assets>
Rename asset file upon upload?
# Rename asset file upon upload?

(Asked by: username_0 on 2014-07-15)

Is there any way to rename files upon there upload to an assets field?

I know I can hit the options of the file and rename manually, but was wondering if there was a way to do this automatically? i.e. renamed based on the entry ID.

**Tags:** assets


---

## 1 answers

### Answer by username_1 on 2014-07-15. Score: 1

Craft has the ability to dynamically add subfolder paths to Assets when you are creating the Asset field in the control panel.

Tags like {slug} and {author.username} are some of the available options for creating the directories.

I know it has been brought up before and they have acknowledged the possibility. So who knows, maybe we will see it in 2.2?

For now, if organization is a concern I recommend using subfolders to keep it clean.

![asset field options](https://i.sstatic.net/4DyEe.png)

> **Comments:**
> **username_0**: Yes, I've set dynamic folder locations which is really useful. It's probably just the OCD side in me, but my files (images) will come from a wide range of sources, from different users etc, so I'd rather the files have consistent naming.  
> **username_1**: Agreed, I am the same way and was one who asked this very question. I don't know what the have planned for 2.2 but I have a "feeling" a lot of great things for assets will be coming out with it ;)  
> **username_0**: Here's hoping! I'd love to (for example) rename the files with the kind of flexibility there is in setting upload location. Fingers crossed. :)  
> **username_1**: These guys always have a few tricks up their sleeves... I'm sure it will be another great release - on both developer and feature fronts.  

---

