How to download a file in Streamlit?
Use the st.download_button widget that is natively built into Streamlit. Check out a sample app demonstrating how you can use st.download_button to download common file formats.
Example usage
Additional resources:
- https://blog.streamlit.io/0-88-0-release-notes/
- https://streamlit-release-demos-0-88streamlit-app-0-88-v8ram3.streamlit.app/
- https://docs.streamlit.io/develop/api-reference/widgets/st.download_button
Still have questions?
Our forums are full of helpful information and Streamlit experts.
