Dynamically disable the uploader based upon tab selection

Hi, I am trying to create a streamlit web application with 2 tabs using st.tabs and 2 file uploader at the side bar. i want to design this in such a way that if user select the β€œtab1”, only the file uploader1 will be enable and similarly if the user select the β€œtab2”, only file_uploader2 will be enabled. any help will be really appreciated.