Store Files on Server (streamlit) and access them while air-time of App

Hi Community,

Is there a possibility to store media data ( aka. images) on the server (in a static/media folder) of streamlit while running the app (sharing)?Ofc I don’t want to use the streamlit server as a file storage (which would be nice though - watch out for irony), but I just think it would be nice to store data for runtime.

In my particular case I would like to save images (currently this also happens in “/images/cropped/circle_Josiah_Willard_Gibbs.png”, but I get a 500: “Internal server error.” when I try to load the image later. Why is that and is there another way/ place how it works?

1 Like