Hello Experts!
I am trying out a POC where I am creating a basic file upload utility in streamlit app that helps users to upload a file in streamlit which gets loaded in CDF Files.
I am trying to take use of the following function from the sdk and tried several ways like providing the upload_url as a ‘path’ variable but nothing worked.
Can someone suggest any workarounds on this?
client.files.upload("/path/to/file", name="my_file")

import streamlit as st
from cognite.client import CogniteClient
client = CogniteClient()
st.title("File Uploader")
uploaded_file = st.file_uploader( "Upload your file here...")
st.write(uploaded_file)