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.