Quick question. I have a Streamlit app that locally works well. Locally, I can input the folder path to the location of files to be read and uploaded somewhere else like on Sharepoint.
upload_url = st.text_input ("Please Copy and Paste the folder path to the files to be uploaded") dir_list = os.listdir(upload_url )
I understand that on a hosted app on say Heroku, the local folder path will not be read. However, I still need to read the files and upload them to Sharepoint. Work around would probably be to upload the files to a temporary folder on the server from where the upload to a Sharepoint location can be made. Is this practically possible and if so, how can this be achieved?
uploaded_files = st.file_uploader("Choose the files to be uploaded", accept_multiple_files=True) for uploaded_file in uploaded_files: bytes_data = uploaded_file.read() st.write(uploaded_files)