How to upload file to the specified directory of server machine?

for example, in community, when we post a new question or answer one question, we can upload file like picture or gif.
How can we make it in streamlit program too?

1 Like

Hello @BeyondMyself!

You can add your images to your app via st.image, so e.g.

st.image("ArrowVertical.png", width=170)

Alternativally, you can upload images dynamically via st.file_uploader - You can find more info about it here:

Happy Streamlitin’! :balloon: