View files from streamlit cloud

Hi there!
I have a web site on streamlit cloud, which allows users to generate images. All generated images are saved in a special folder. How can I get access to files in those folders?

Hi @MelikbekyanAshot -

When you run on Streamlit Cloud, it’s important to recognize that the container is effectively “read-only”. Meaning, while files can be saved on the container, there’s no guarantee that multiple containers aren’t currently running, that the container wasn’t restarted/crashed, etc.

So if you want to have a way to access the files from users, you will need to write them from your cloud app to some external system such as Amazon S3, Dropbox, Google Drive, etc. so that those files will exist for you to access.