Get the path of a file with streamlit cloud

Hello, I create a project where the user upload a file and use the path to this file to run what next.
In local, it works perfectly.
But in the cloud, I need to know if it’s possible to find the path of a file ? Because with st.upload it only take the name of the file, but I need the entire path.
My idea was to create an input for directory path, and then os.chdir in this path, so I can just use st.upload, but it doesn’t work because streamlit don’t recognize my directory path.
So is there any solution ? I have to make sure that my project can be done with streamlit cloud
Thanks

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.