Untitled
unknown
plain_text
2 years ago
426 B
7
Indexable
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")Editor is loading...
Leave a Comment