Need the file uploaded through file_uploader to remain as I navigate multiple pages

I am uploading a file through streamlit file_uploader. When I move from one page to the next and then return to the same page, the file is lost ( I have to upload it again)
Is there anyway the file could remain as I navigate multiple pages?

Create a session variable and save the uploaded file.

1 Like

I’m having same issue, do you have a solution? I saved to session variable, but how do I load the variable to the st.file_uploader widget? for the feature that user might want to delete some of the files that are already uploaded.

That is not possible with the current implementation.