Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
426 B
2
Indexable
Never
import streamlit as st
from pathlib import Path

uploaded_file = st.file_uploader("Choose a file")
if uploaded_file:
    # for File in uploaded_file:
    File = uploaded_file
    save_folder = '/home/rishabh/Desktop/SOC_Dev/Data-import-export/Import/data_transfer/streamlit_got'
    save_path = Path(save_folder, File.name)
    with open(save_path, mode='wb') as w:
        w.write(File.getvalue())
    print("Task completed")
Leave a Comment