How to download a file without the need to show or click st.download_button

I need to download a file from the server, once it has been created without explicitly showing or asking user to download by clicking the st.download_button. How do I implement this?

Hi @Srk

If it’s text data you’re looking to export from your Streamlit app, you could look into connecting your app to an external database and export those data.

If it’s binary data that you’re looking to export, you could explore the use of Google Drive API. Here is a relevant forum posts:

Hope this helps!

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