# Update single component with multiple Outputs

**URL:** <https://community.plotly.com/t/update-single-component-with-multiple-outputs/19904>\
**Category:** Dash Python\
**Created:** [February 21, 2019, 11:28am UTC](https://community.plotly.com/t/update-single-component-with-multiple-outputs/19904 "2019-02-21T11:28:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthijs](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@Matthijs](https://community.plotly.com/u/Matthijs)\
**Post date:** [February 21, 2019, 11:28am UTC](https://community.plotly.com/t/update-single-component-with-multiple-outputs/19904/1 "2019-02-21T11:28:37Z")

</div>

I have a dash table where a user can add or delete files from. Based on the user action (delete or add files) the table needs to be updated. I thought thirst two write two callbacks, but this is not allowed:

You have already assigned a callback to the output  
with ID “Table” and property “data”. An output can only have  
a single callback function. Try combining your inputs and  
callback functions together into one function.

But when I want to write everything in one component, I need to know which inputs was triggered. Otherwise, I do not know which action to perform (delete or add files). I did find [this](https://github.com/plotly/dash/pull/320), but no clue when it is going to be released.

Another solution I found is using the timestamp to figure out which component was triggered, unfortunately, the upload component does not have this timestamp. So maybe adding a confirm button for uploading files could be the solution…

1. Why is that you cannot have multiple outputs on one single component?
2. Maybe I am overlooking something and is there a simple solution?
