Server side file select

Hi @Hanan_Shteingart_IL

See this relevant post with a code snippet:


import streamlit as st
import os

def file_selector(folder_path='.'):
    filenames = os.listdir(folder_path)
    selected_filename = st.selectbox('Select a file', filenames)
    return os.path.join(folder_path, selected_filename)

filename = file_selector()
st.write('You selected `%s`' % filename)

The code was originally created by @Adrien_Treuille