For situations where you need a file path, rather than an in-memory file object, you can use NamedTemporyFiles, like in this example File uploading and reading using st.file_uploader - #2 by blackary
1 Like