# Upload user's files in her or his dedicated folder

**URL:** <https://community.transloadit.com/t/upload-users-files-in-her-or-his-dedicated-folder/14416>\
**Category:** Tus\
**Created:** [August 21, 2017, 7:43am UTC](https://community.transloadit.com/t/upload-users-files-in-her-or-his-dedicated-folder/14416 "2017-08-21T07:43:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dartanan](https://avatars.discourse-cdn.com/v4/letter/d/858c86/32.png) [@dartanan](https://community.transloadit.com/u/dartanan)\
**Post date:** [August 21, 2017, 7:43am UTC](https://community.transloadit.com/t/upload-users-files-in-her-or-his-dedicated-folder/14416/1 "2017-08-21T07:43:22Z")

</div>

I run “tus” as a resumable upload server and I must upload user’s files for her or his dedicated folder. Can I change tus source code to add a header field with “uploadDirectory” location? which source code file include this part of upload process?

---

<div class="post-metadata">

**Author:** ![marius](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/marius/32/572_2.png) [@marius](https://community.transloadit.com/u/marius)\
**Post date:** [August 21, 2017, 2:24pm UTC](https://community.transloadit.com/t/upload-users-files-in-her-or-his-dedicated-folder/14416/2 "2017-08-21T14:24:14Z")

</div>

Hi there,

what server software are you using? If it’s tusd ([https://github.com/tus/tusd](https://github.com/tus/tusd)), then you do not need to change any of its source code but use the integrated Hook System (see [https://github.com/tus/tusd/blob/master/docs/hooks.md](https://github.com/tus/tusd/blob/master/docs/hooks.md) for more information). You can add the desired upload directory to the upload’s meta data and then move the file to its final location inside a post-finish hook ([https://github.com/tus/tusd/blob/master/docs/hooks.md#post-finish](https://github.com/tus/tusd/blob/master/docs/hooks.md#post-finish)).

I hope this helps.
