Download app data

Hello,

I published an app with Streamlit Cloud. In this application, the user can enter data and the data he enters is stored in an excel file. So there is an excel file that is constantly updated according to the data entry. Let’s say 10 days later, I wanted to download the excel file with all the new data entered. Where can I find and download this excel file?

Where you have saved it :wink:

https://docs.streamlit.io/library/api-reference/widgets/st.download_button


Apart from that, you have to take care of the handling of the users and the saved files yourself.

However, this is too little information to be able to say more about it. If you need more tips, please share the link to your public github repo.

Thank you for download suggestion. I need to know basically if I can access the data storage area. Your answer is not explained my question.

For example, when we publish a site on the web, we can access all its files. I want to know if such a situation is possible. My questions may be very basic but I’m trying to understand the logic and the way it works.

You can host a few basic types of static files on your app and access them from a url How to host static files in Streamlit? - Streamlit Docs. You might have trouble with an excel file, because it will be served as a plain text file, but a csv should work fine.

Let me try asking the question another way. Suppose the file in question is shared for updating - eg something each user of the app does may update the file. Perhaps the file is a log of some sort. the file is not meant to be accessible directly to the users but I, the developer, want to be able to download it from streamlit hosting. Is there any way to access this file outside the app… or do I need to build code into the app, perhaps with some kind of password protection, and use this feature of the app to download the file.

There’s no way to download it directly like you describe through Community Cloud. My instinct would be to put in something like S3 and then download it from there. You could even have a second, private, “admin” app that would make it easier to view and download the file from S3.

Thanks. Not the answer I hoped for but I do understand why Streamlit would not want to become a host for collected data even though a hosted app can be used for collecting data which is then stored elsewhere.

1 Like

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