<p>No idea if it lets users create subfolders on the front-end, but this is the closest plugin I could find: <a href="https://straightupcraft.com/craft-plugins/assets-browser" rel="nofollow noreferrer">https://straightupcraft.com/craft-plugins/assets-browser</a></p>

<p>If that doesn't do it, most likely you'd need to do some custom plugin work to do what you're looking for.</p>

CC BY-SA 3.0
2017-11-24T03:05:09.020Z
If I wanted to do this in my own plugin, would it essentially just be listening for the `users.onActivateUser` event when a new user registers/activates their account, then using PHP's `mkdir()` function to create a subfolder for that particular user in my assets folder?  Then it seems like the rest is simply setting the file upload field in the profile form to target that user's subfolder, presumably by id, as the destination. Is this the right track?
Ryan
CC BY-SA 3.0
2017-11-27T05:39:03.047Z
@Ryan you need to know there are two kinds of folders in craft. First: your local file system folder you create with `mkdir()` second: your craft `FolderModel` you require in order to manage assets in your cp. The `insertFileByLocalPath` function to include assets to the system requires such a folder model ID. So if you don't want to throw every asset into the same craft folder you would need to create one of those as well. I would suggest you create a new question then I'll show my code to create subfolders, insert files in it and link those to an entry.
Robin Schambach
CC BY-SA 3.0
2017-03-31T23:03:47.190Z
2017-03-31T23:03:47.190Z
Brad Bell
<p>I have a standard user profile form. But now I would like that the user can upload images in new subfolder and make own subfolder. 
Is there any solution or a plugin for this?</p>

<assets><form><upload><profile>
User make assets subfolder in the frontend
# User make assets subfolder in the frontend

(Asked by: username_0 on 2017-03-31)

I have a standard user profile form. But now I would like that the user can upload images in new subfolder and make own subfolder.
Is there any solution or a plugin for this?

**Tags:** assets, form, upload, profile

---

## 1 answers

### Answer by username_1 on 2017-03-31. Score: 1

No idea if it lets users create subfolders on the front-end, but this is the closest plugin I could find: <https://straightupcraft.com/craft-plugins/assets-browser>

If that doesn't do it, most likely you'd need to do some custom plugin work to do what you're looking for.

> **Comments:**
> **username_2**: If I wanted to do this in my own plugin, would it essentially just be listening for the `users.onActivateUser` event when a new user registers/activates their account, then using PHP's `mkdir()` function to create a subfolder for that particular user in my assets folder?  Then it seems like the rest is simply setting the file upload field in the profile form to target that user's subfolder, presumably by id, as the destination. Is this the right track?  
> **username_3**: @Ryan you need to know there are two kinds of folders in craft. First: your local file system folder you create with `mkdir()` second: your craft `FolderModel` you require in order to manage assets in your cp. The `insertFileByLocalPath` function to include assets to the system requires such a folder model ID. So if you don't want to throw every asset into the same craft folder you would need to create one of those as well. I would suggest you create a new question then I'll show my code to create subfolders, insert files in it and link those to an entry.  

---

