How to get the filepath of a file uploaded using st.file_uploader?

How can we get the file path of a file ( mine is a .apk file) that was uploaded using the file_uploader . I hope it is stored in a buffer.

2 Likes

This isn’t currently possible, but it is a requested feature that we’re evaluating as part of our file-uploader refresh:

3 Likes

Thanks. Can we know where the file is actually stored while uploaded through streamlit.file_uploader? Is it stored within client side?

1 Like

It’s not stored anywhere. It is returned to you directly as an bytes object.
That is how most uploads work.

Thanks for the clarification.