Download button to a custom directory

I am not sure if I’m missing something, but i can’t seem to find an easy and handy way to download a file from streamlit to a custom directory.

I am aware of st.download_button, but I cannot seem to specify the directory in which the file has to be saved. To be clear I would want to trigger a file_explorer window exactly like the one that st.file_uploader already triggers.

Is that impossible?

Hi @cmartinotti :wave:

That is not possible today. If you need it to be saved in a specific place on your computer, you’ll need to control that via your browser’s download dialogue.

1 Like

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