Need a guide to save uploaded file to google drive

I would like to write/save uploaded files (using st.file_uploader) to google drive or firebase in streamlit, but all approaches I’ve tried are not working.

Does anyone have a guide/code samplegithub repo that has implemented something similar? Thanks.