# Upload folder and subfolders with folder structure

**URL:** https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853
**Category:** Uppy
**Created:** [October 18, 2023, 1:22am UTC](https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853 "2023-10-18T01:22:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![benny-adiwijaya](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/benny-adiwijaya/32/880_2.png) [@benny-adiwijaya](https://community.transloadit.com/u/benny-adiwijaya)
#### Post date: [October 18, 2023, 1:22am UTC](https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853/1 "2023-10-18T01:22:54Z")

</div>

Hi everyone,

Is it possible to upload in local a folder and subfolders with the folder structure?

Apologies if this has already been asked but I’ve not been able to find an answer.

Thanks

---

<div class="post-metadata">

### Author: ![benny-adiwijaya](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/benny-adiwijaya/32/880_2.png) [@benny-adiwijaya](https://community.transloadit.com/u/benny-adiwijaya)
#### Post date: [October 18, 2023, 6:57pm UTC](https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853/2 "2023-10-18T18:57:25Z")

</div>

Found out using meta relativepath and server side logic for my solution

---

<div class="post-metadata">

### Author: ![toomanylogins](https://avatars.discourse-cdn.com/v4/letter/t/e8c25b/32.png) [@toomanylogins](https://community.transloadit.com/u/toomanylogins)
#### Post date: [July 15, 2024, 3:40pm UTC](https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853/3 "2024-07-15T15:40:34Z")

</div>

Hello, I am a newbie and trying to capture the sub folders. Do you have an example of using relativepath is it set via dashboard or core ?  
Thanks

---

<div class="post-metadata">

### Author: ![benny-adiwijaya](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/benny-adiwijaya/32/880_2.png) [@benny-adiwijaya](https://community.transloadit.com/u/benny-adiwijaya)
#### Post date: [August 13, 2024, 9:00am UTC](https://community.transloadit.com/t/upload-folder-and-subfolders-with-folder-structure/16853/4 "2024-08-13T09:00:29Z")

</div>

Hi, we can add new metadata on file-added event

```auto
uppyDashboard.on('file-added', async (file) => {
            uppyDashboard.setFileMeta(file.id, {
                filename: file.name,
                relativePath: file.meta.relativePath
            });
        });

```

and then on the server side we can create structure folder like metadata relativePath
