# Handling multiple inputs with Uppy and Tus?

**URL:** <https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483>\
**Category:** Uppy\
**Created:** [February 21, 2023, 4:32am UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483 "2023-02-21T04:32:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mshunjan](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mshunjan/32/739_2.png) [@mshunjan](https://community.transloadit.com/u/mshunjan)\
**Post date:** [February 21, 2023, 4:32am UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/1 "2023-02-21T04:32:15Z")

</div>

Is there a suggested pattern for handling multiple file uploaders with Uppy and Tus? I’ve seen previous suggestions of one uppy instance, and multiple dashboard with different id’s. However, in my case, I also need to set file metadata that is unique to each dashboard (so dashboard 1 might have the metafield { id: A }, dashboard 2 { id: B}, etc. This data is used by my backend for further processing.

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [February 22, 2023, 1:19pm UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/2 "2023-02-22T13:19:33Z")

</div>

Hi. Have you tried multiple Uppy instances (one per dashboard)?

---

<div class="post-metadata">

**Author:** ![mshunjan](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mshunjan/32/739_2.png) [@mshunjan](https://community.transloadit.com/u/mshunjan)\
**Post date:** [February 22, 2023, 4:59pm UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/3 "2023-02-22T16:59:39Z")

</div>

Yes that is what I have been using as my current solution, but I was wondering if I could clean it up somehow.

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [February 23, 2023, 2:53am UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/4 "2023-02-23T02:53:30Z")

</div>

What do you mean by “clean it up”? Does it cause problems to have multiple instances?

---

<div class="post-metadata">

**Author:** ![mshunjan](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mshunjan/32/739_2.png) [@mshunjan](https://community.transloadit.com/u/mshunjan)\
**Post date:** [March 5, 2023, 1:24am UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/5 "2023-03-05T01:24:27Z")

</div>

Apologies. When I say “clean it up”, I mean I would like to simplify the code. The issue I have with multiple instances is that sharing and accessing state, especially between components, becomes unnecessarily complex.

---

<div class="post-metadata">

**Author:** ![mifi](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/mifi/32/603_2.png) [@mifi](https://community.transloadit.com/u/mifi)\
**Post date:** [March 6, 2023, 5:12am UTC](https://community.transloadit.com/t/handling-multiple-inputs-with-uppy-and-tus/16483/6 "2023-03-06T05:12:07Z")

</div>

Alright. Unfortunately I don’t know of any way to use multiple dashboards on the same Uppy, with different configurations.
